Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/client / reconnect / BackoffPolicy
Interface: BackoffPolicy
Defined in: packages/client/src/reconnect.ts:21
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:23 |
maxAttempts? | readonly | number | Hard cap on the number of attempts. The client surfaces a TransportFailedError once exceeded. Default Infinity. | packages/client/src/reconnect.ts:30 |
maxMs? | readonly | number | Cap on every individual sleep. Default 30_000. | packages/client/src/reconnect.ts:25 |
random? | readonly | () => number | Optional injection seam used by tests; defaults to Math.random. | packages/client/src/reconnect.ts:34 |