Skip to main content
Version: Next

Type Alias: ReconnectOptions

ReconnectOptions = object

Defined in: src/channel/ws/ws_0_10.ts:76

Options for configuring the automatic reconnection behavior of the WebSocketChannel.

Properties

retries?

optional retries?: number

Defined in: src/channel/ws/ws_0_10.ts:81

The number of retries to attempt before giving up.

Default

5

delay?

optional delay?: number

Defined in: src/channel/ws/ws_0_10.ts:86

The initial delay in milliseconds before the first retry.

Default

2000

exponential?

optional exponential?: number | boolean

Defined in: src/channel/ws/ws_0_10.ts:91

Whether to use the exponential backoff (delay being doubled for each subsequent retry).

Default

true