Setu-TS
    Preparing search index...

    Interface WsServerLike

    A ws WebSocketServer in noServer mode, narrowed to what this adapter drives.

    0.2.0

    interface WsServerLike {
        close(): void;
        handleUpgrade(
            request: unknown,
            socket: unknown,
            head: unknown,
            callback: (ws: WsSocketLike) => void,
        ): void;
    }
    Index
    • Completes the handshake over an already-accepted TCP connection.

      Parameters

      • request: unknown

        The Node IncomingMessage from the upgrade event

      • socket: unknown

        The raw duplex socket from the upgrade event

      • head: unknown

        The bytes the HTTP parser already buffered

      • callback: (ws: WsSocketLike) => void

        Receives the completed socket

      Returns void