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

    Interface TcpServerEvents

    Event map for TcpServer server-specific events.

    interface TcpServerEvents {
        close: [];
        connection: [client: TcpClient];
        drop: [
            localEndpoint: InetEndpoint
            | null,
            remoteEndpoint: InetEndpoint | null,
        ];
        error: [err: Error];
        listening: [];
    }
    Index

    Properties

    close: []

    Emitted when the server closes.

    connection: [client: TcpClient]

    Emitted when a new connection is made. The connection is wrapped in a TcpClient instance.

    drop: [localEndpoint: InetEndpoint | null, remoteEndpoint: InetEndpoint | null]

    Emitted when a new connection is dropped. Provides the local and remote endpoint information of the dropped connection.

    error: [err: Error]

    Emitted when an error occurs.

    listening: []

    Emitted when the server has been bound after calling server.listen().