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?
optionalretries?:number
Defined in: src/channel/ws/ws_0_10.ts:81
The number of retries to attempt before giving up.
Default
5
delay?
optionaldelay?:number
Defined in: src/channel/ws/ws_0_10.ts:86
The initial delay in milliseconds before the first retry.
Default
2000
exponential?
optionalexponential?: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