ReconnectOptions
Reconnection policy: the delay doubles from minDelayMs up to maxDelayMs; the server's retry field (SSE) replaces the first delay.
Reconnection policy: the delay doubles from minDelayMs up to maxDelayMs; the server's retry
field (SSE) replaces the first delay. maxAttempts bounds the attempts in a row (default: no bound).
Import#
ts
import type { ReconnectOptions } from "@shadow-js/dusk/client";
Signature#
ts
interface ReconnectOptions {
readonly minDelayMs?: number;
readonly maxDelayMs?: number;
readonly maxAttempts?: number;
}
Members#
| Name | Type | Description |
|---|---|---|
minDelayMs? |
readonly minDelayMs?: number |
|
maxDelayMs? |
readonly maxDelayMs?: number |
|
maxAttempts? |
readonly maxAttempts?: number |