Interface ConnectOpts

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

connect

Hierarchy

  • ConnectOpts

Properties

Properties

hostname?: string

The hostname of the destination server to connect to.

If not defined, then hostname defaults to 127.0.0.1.

Example

"example.com"
port: number

The port number to connect to.

Example

80

Generated using TypeDoc