Ende.ConnectOptions

interface

interface Ende.ConnectOptions

Options which can be set when connecting via Ende.connect.

Properties

port

port: number

The port to connect to.

hostname

hostname?: string

A literal IP address or host name that can be resolved to an IP address. If not specified,

Default: "127.0.0.1"

transport

transport?: "tcp"

The transport layer protocol to use.

signal

signal?: AbortSignal

An AbortSignal to close the tcp connection.

autoSelectFamily

autoSelectFamily?: boolean

Enable Happy Eyeballs algorithm (RFC 8305) for automatic address family selection. When enabled, the connection will try both IPv6 and IPv4 addresses with interleaving for faster connection establishment.

Default: true

autoSelectFamilyAttemptDelay

autoSelectFamilyAttemptDelay?: number

Delay in milliseconds between starting new connection attempts when using Happy Eyeballs. A new connection attempt is started every autoSelectFamilyAttemptDelay milliseconds until one succeeds.

Default: 250