Namespace: networking

qz.networking

Calls related to networking information
Since:
  • 2.1.0
Source:

Methods

(static) device(hostnameopt, portopt) → {Promise.<(Object|Error)>}

Parameters:
Name Type Attributes Description
hostname string <optional>
Hostname to try to connect to when determining network interfaces, defaults to "google.com"
port number <optional>
Port to use with custom hostname, defaults to 443
Since:
  • 2.1.0
Source:
Returns:
Connected system's network information.
Type
Promise.<(Object|Error)>

(static) devices(hostnameopt, portopt) → {Promise.<(Array.<Object>|Error)>}

Parameters:
Name Type Attributes Description
hostname string <optional>
Hostname to try to connect to when determining network interfaces, defaults to "google.com"
port number <optional>
Port to use with custom hostname, defaults to 443
Since:
  • 2.1.0
Source:
Returns:
Connected system's network information.
Type
Promise.<(Array.<Object>|Error)>

(static) hostname(hostnameopt, portopt) → {Promise.<(string|Error)>}

Get computer hostname
Parameters:
Name Type Attributes Description
hostname string <optional>
DEPRECATED Hostname to try to connect to when determining network interfaces, defaults to "google.com"
port number <optional>
DEPRECATED Port to use with custom hostname, defaults to 443
Since:
  • 2.2.2
Source:
Returns:
Connected system's hostname.
Type
Promise.<(string|Error)>