@ac-essentials/misc-util
    Preparing search index...

    Type Alias TcpSocketEvents

    TcpSocketEvents: StreamSocketEvents & {
        connectionAttempt: [endpoint: InetEndpoint];
        connectionAttemptFailed: [endpoint: InetEndpoint, error: Error];
        connectionAttemptTimeout: [endpoint: InetEndpoint];
        lookup: [err: Error | null, address: InetAddress, host: string];
    }

    Event map for TcpSocket socket-specific events.

    Type Declaration

    • connectionAttempt: [endpoint: InetEndpoint]

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

    • connectionAttemptFailed: [endpoint: InetEndpoint, error: Error]

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

    • connectionAttemptTimeout: [endpoint: InetEndpoint]

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

    • lookup: [err: Error | null, address: InetAddress, host: string]

      Emitted after resolving the host name but before connecting.