Ende.ConnectOptions
interface
interface Ende.ConnectOptionsOptions which can be set when connecting via Ende.connect.
Properties
port
port: numberThe port to connect to.
hostname
hostname?: stringA 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?: AbortSignalAn AbortSignal to close the tcp connection.
autoSelectFamily
autoSelectFamily?: booleanEnable 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?: numberDelay 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