Setu-TS
    Preparing search index...

    Interface WebSocketLike

    The subset of the web WebSocket API the runtime adapters drive. Declared structurally so no module depends on a platform's global types and a fake can stand in during unit tests.

    0.2.0

    interface WebSocketLike {
        readyState: number;
        close(code?: number, reason?: string): void;
        send(data: string | Uint8Array<ArrayBufferLike>): void;
    }

    Hierarchy (View Summary)

    Index
    readyState: number

    Numeric ready state, per the web WebSocket API.