Setu-TS
    Preparing search index...

    Interface IWebSocketTransport

    Minimal structural WebSocket surface used by the client.

    interface IWebSocketTransport {
        onclose: ((event: CloseEvent) => void) | null;
        onerror: ((event: Event) => void) | null;
        onmessage: ((event: MessageEvent) => void) | null;
        onopen: ((event: Event) => void) | null;
        readyState: number;
        close(code?: number, reason?: string): void;
        send(data: string): void;
    }
    Index
    onclose: ((event: CloseEvent) => void) | null

    Close callback installed by the client.

    onerror: ((event: Event) => void) | null

    Error callback installed by the client.

    onmessage: ((event: MessageEvent) => void) | null

    Message callback installed by the client.

    onopen: ((event: Event) => void) | null

    Open callback installed by the client.

    readyState: number

    Browser-compatible ready-state number (0 connecting, 1 open).