Skip to main content

Interface: ConnectOptions

Extended by

Properties

bindAddr?

optional bindAddr?: object

Local address and port to bind before connecting.

ip

ip: string

port

port: number


dnsQueryType?

optional dnsQueryType?: "ipv4" | "ipv6"

Force the address family used to resolve host.


ipv6Only?

optional ipv6Only?: boolean

Restrict an AF_INET6 socket to IPv6 only.


keepAliveDelay?

optional keepAliveDelay?: number

TCP keep-alive idle delay, in seconds. Enables keep-alive when set.


noDelay?

optional noDelay?: boolean

Disable Nagle's algorithm (sets TCP_NODELAY).