Graphorin API reference v0.12.1
Graphorin API reference / @graphorin/client / reconnect / BackoffPolicy
Interface: BackoffPolicy
Defined in: packages/client/src/reconnect.ts:23
Stable shape consumed by computeBackoffMs.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
baseMs? | readonly | number | Initial slot in milliseconds. Default 500. | packages/client/src/reconnect.ts:25 |
maxAttempts? | readonly | number | Hard cap on the number of attempts. The client surfaces a TransportFailedError once exceeded. Default Infinity. | packages/client/src/reconnect.ts:32 |
maxMs? | readonly | number | Cap on every individual sleep. Default 30_000. | packages/client/src/reconnect.ts:27 |
random? | readonly | () => number | Optional injection seam used by tests; defaults to Math.random. | packages/client/src/reconnect.ts:36 |