websocket-ts
Version:
<div> <div align="center"> <img src="https://raw.githubusercontent.com/jjxxs/websocket-ts/gh-pages/websocket-ts-logo.svg" alt="websocket-ts" width="300" height="65" /> </div> <p align="center"> <img src="https://github.com/jjxxs/websocket-ts
20 lines • 669 B
TypeScript
import { Backoff } from "./backoff/backoff";
/**
* Options for the websockets retry-strategy.
*/
export interface WebsocketConnectionRetryOptions {
/**
* The maximum number of retries before giving up. No limit if undefined.
*/
readonly maxRetries?: number;
/**
* Wether to reconnect immediately after a connection has been lost,
* ignoring the backoff strategy for the first retry.
*/
readonly instantReconnect?: boolean;
/**
* The backoff strategy to use. This is used to determine the delay between connection-retries.
*/
readonly backoff?: Backoff;
}
//# sourceMappingURL=websocket_retry_options.d.ts.map