Interface TcpListenOptions

Hierarchy

Properties

backlog?: number

Listen backlog. Defaults to 10.

family?: "ipv4" | "ipv6"

Address family. Omit to listen on both ipv4 and ipv6 – if supported by the OS.

host?: string

Host or IP address to listen on. Omit to listen on all interfaces.

port?: number

Port to listen on. Omit to listen on a randomly selected port.

Generated using TypeDoc