Skip to main content

Interface: TLSConnectOptions

Extends

Properties

alpn?

optional alpn?: string[]

ALPN protocol list to negotiate.


bindAddr?

optional bindAddr?: object

Local address and port to bind before connecting.

ip

ip: string

port

port: number

Inherited from

ConnectOptions.bindAddr


ca?

optional ca?: string

PEM-encoded CA certificate(s) to trust. Defaults to the embedded Mozilla CA bundle.


cert?

optional cert?: string

PEM-encoded client certificate for mutual TLS.


dnsQueryType?

optional dnsQueryType?: "ipv4" | "ipv6"

Force the address family used to resolve host.

Inherited from

ConnectOptions.dnsQueryType


ipv6Only?

optional ipv6Only?: boolean

Restrict an AF_INET6 socket to IPv6 only.

Inherited from

ConnectOptions.ipv6Only


keepAliveDelay?

optional keepAliveDelay?: number

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

Inherited from

ConnectOptions.keepAliveDelay


key?

optional key?: string

PEM-encoded client private key for mutual TLS.


noDelay?

optional noDelay?: boolean

Disable Nagle's algorithm (sets TCP_NODELAY).

Inherited from

ConnectOptions.noDelay


sni?

optional sni?: string

Server Name Indication hostname. Defaults to the host argument.


verifyPeer?

optional verifyPeer?: boolean

Whether to verify the server's certificate. Defaults to true.