Skip to content

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

PropertyModifierTypeDescriptionDefined in
baseMs?readonlynumberInitial slot in milliseconds. Default 500.packages/client/src/reconnect.ts:23
maxAttempts?readonlynumberHard cap on the number of attempts. The client surfaces a TransportFailedError once exceeded. Default Infinity.packages/client/src/reconnect.ts:30
maxMs?readonlynumberCap on every individual sleep. Default 30_000.packages/client/src/reconnect.ts:25
random?readonly() => numberOptional injection seam used by tests; defaults to Math.random.packages/client/src/reconnect.ts:34