Options for the websockets retry-strategy.

interface WebsocketConnectionRetryOptions {
    backoff?: Backoff;
    instantReconnect?: boolean;
    maxRetries?: number;
}

Properties

backoff?: Backoff

The backoff strategy to use. This is used to determine the delay between connection-retries.

instantReconnect?: boolean

Wether to reconnect immediately after a connection has been lost, ignoring the backoff strategy for the first retry.

maxRetries?: number

The maximum number of retries before giving up. No limit if undefined.