ConnectionManagerEvents
ConnectionManagerEvents =
object
Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:22
Event payloads emitted by ConnectionManager.
Properties
Section titled “Properties”circuit_closed
Section titled “circuit_closed”circuit_closed:
Record<string,never>
Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:41
circuit_half_open
Section titled “circuit_half_open”circuit_half_open:
Record<string,never>
Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:42
circuit_opened
Section titled “circuit_opened”circuit_opened:
object
Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:40
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
Section titled “resetAfterMs”resetAfterMs:
number
terminal?
Section titled “terminal?”
optionalterminal?:boolean
connection_attempt
Section titled “connection_attempt”connection_attempt:
object
Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:27
attempt
Section titled “attempt”attempt:
number
maxAttempts
Section titled “maxAttempts”maxAttempts:
number
connection_error
Section titled “connection_error”connection_error:
object
Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:28
attempt
Section titled “attempt”attempt:
number
error:
Error
connection_status_changed
Section titled “connection_status_changed”connection_status_changed:
object
Defined in: packages/client/src/lib/connection-manager/connection-manager.ts:23
previousStatus
Section titled “previousStatus”previousStatus:
ConnectionStatus
status
Section titled “status”status:
ConnectionStatus