Skip to content

InetSocketEvents

InetSocketEvents = StreamSocketEvents & object

Defined in: packages/node/src/net/inet-socket.ts:8

Event map for sockets running over an IP transport.

connectionAttempt: [InetEndpoint]

Emitted when a new connection attempt is started. May be emitted multiple times if family autoselection is enabled.

connectionAttemptFailed: [InetEndpoint, Error]

Emitted when a connection attempt failed. May be emitted multiple times if family autoselection is enabled.

connectionAttemptTimeout: [InetEndpoint]

Emitted when a connection attempt timed out. May be emitted multiple times if family autoselection is enabled.

lookup: [Error | null, InetAddress, string]

Emitted after resolving the host name but before connecting.