• Download
  • Demo
  • Buy
  • API
  • Docs
  • Support
  • About
  • Contact
  • Login
API Home
Namespaces
qzapiconfigsfilehidnetworkingprinterssecurityserialsocketusbwebsocket
API Home
Namespaces
qzapiconfigsfilehidnetworkingprinterssecurityserialsocketusbwebsocket

Namespace: networking

qz.networking

Calls related to networking information
Since:
  • 2.1.0
Source:
  • qz-tray.js, line 2581

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:
  • qz-tray.js, line 2595
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:
  • qz-tray.js, line 2641
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:
  • qz-tray.js, line 2619
Returns:
Connected system's hostname.
Type
Promise.<(string|Error)>
Documentation generated by JSDoc 3.6.11

© 2025 qz | Privacy Policy