Skip to content

ConnectionManagerEvents

ConnectionManagerEvents = object

Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:23

Event payloads emitted by ConnectionManager.

circuit_closed: Record<string, never>

Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:42


circuit_half_open: Record<string, never>

Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:43


circuit_opened: object

Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:41

The breaker opened. resetAfterMs is when the half-open probe is due — unless terminal is true, in which case no probe is scheduled and resetAfterMs is not honoured.

terminal means the server refused this client outright (a retryable: false disconnect, e.g. RFC 6455 close code 1008), so reconnecting on the same session cannot succeed and would only add load. Recovery there is an explicit user action — typically a reload, which mints a fresh session — not a timer.

resetAfterMs: number

optional terminal?: boolean


connection_attempt: object

Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:28

attempt: number

maxAttempts: number


connection_error: object

Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:29

attempt: number

error: Error


connection_status_changed: object

Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:24

previousStatus: ConnectionStatus

status: ConnectionStatus