Options that can be passed to the Websocket constructor.

interface WebsocketOptions {
    buffer?: WebsocketBuffer<
        string
        | ArrayBufferLike
        | ArrayBufferView<ArrayBufferLike>
        | Blob,
    >;
    listeners?: WebsocketEventListeners;
    retry?: WebsocketConnectionRetryOptions;
}

Properties

buffer?: WebsocketBuffer<
    string
    | ArrayBufferLike
    | ArrayBufferView<ArrayBufferLike>
    | Blob,
>

The Buffer to use.

The initial listeners to add to the websocket.

The options for the connection-retry-strategy.