Field Notes
    Preparing search index...

    Interface WebSocketTransportOptions

    interface WebSocketTransportOptions {
        maxBufferSize?: number;
        protocols?: readonly string[];
        random?: () => number;
        reconnect?: boolean;
        reconnectFactor?: number;
        reconnectInitialDelayMs?: number;
        reconnectMaxDelayMs?: number;
        shouldReconnect?: (code: number) => boolean;
        WebSocket?: {
            CLOSED: 3;
            CLOSING: 2;
            CONNECTING: 0;
            OPEN: 1;
            prototype: WebSocket;
            new (url: string | URL, protocols?: string | string[]): WebSocket;
        };
    }
    Index
    maxBufferSize?: number
    protocols?: readonly string[]

    Subprotocols offered on every connect, including reconnects. Use bearerSubprotocols(token) to authenticate without a token in the URL.

    random?: () => number
    reconnect?: boolean
    reconnectFactor?: number
    reconnectInitialDelayMs?: number
    reconnectMaxDelayMs?: number
    shouldReconnect?: (code: number) => boolean
    WebSocket?: {
        CLOSED: 3;
        CLOSING: 2;
        CONNECTING: 0;
        OPEN: 1;
        prototype: WebSocket;
        new (url: string | URL, protocols?: string | string[]): WebSocket;
    }