InetSocketEvents
InetSocketEvents =
StreamSocketEvents&object
Defined in: packages/node/src/net/inet-socket.ts:8
Event map for sockets running over an IP transport.
Type Declaration
Section titled “Type Declaration”connectionAttempt
Section titled “connectionAttempt”connectionAttempt: [
InetEndpoint]
Emitted when a new connection attempt is started. May be emitted multiple times if family autoselection is enabled.
connectionAttemptFailed
Section titled “connectionAttemptFailed”connectionAttemptFailed: [
InetEndpoint,Error]
Emitted when a connection attempt failed. May be emitted multiple times if family autoselection is enabled.
connectionAttemptTimeout
Section titled “connectionAttemptTimeout”connectionAttemptTimeout: [
InetEndpoint]
Emitted when a connection attempt timed out. May be emitted multiple times if family autoselection is enabled.
lookup
Section titled “lookup”lookup: [
Error|null,InetAddress,string]
Emitted after resolving the host name but before connecting.