nx.js
NamespacesSwitchInterfaces

SocketAddress

Specifies the port number and optional hostname for connecting to a remove server over the network.

See

Switch.connect()

Properties

PropertyTypeDescription
hostnamestringThe hostname of the destination server to connect to. If not defined, then hostname defaults to 127.0.0.1. Example "example.com"
portnumberThe port number to connect to. Example 80

On this page