A11 TypeScript API - v0.2.1
    Preparing search index...

    Interface WebSocketClientOptions

    HTTP handshake, framing, and socket backpressure options.

    interface WebSocketClientOptions {
        bufferedAmountLowThreshold?: number;
        framing?: ChannelFramingOptions;
        headers?: Readonly<Record<string, string>>;
        maxBufferedAmount?: number;
        protocols?: string | readonly string[];
        webSocketFactory?: WebSocketFactory;
    }
    Index
    bufferedAmountLowThreshold?: number

    Low-water threshold used to resume a backpressured sender.

    Packetization and reassembly bounds.

    headers?: Readonly<Record<string, string>>

    Extra handshake headers; browsers cannot set arbitrary headers.

    maxBufferedAmount?: number

    Abort sends if the socket buffers more than this many bytes.

    protocols?: string | readonly string[]

    WebSocket subprotocol or ordered preference list.

    webSocketFactory?: WebSocketFactory

    Custom constructor for tests or non-browser runtimes.