This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk/realtime / RealtimeStatus

RealtimeStatus ​

RealtimeStatus = "connecting" | "open" | "reconnecting" | "closed" | "unavailable"

Realtime connection state: 'connecting' on the first connection, 'open' connected, 'reconnecting' after a drop (retrying with backoff), 'closed' with no subscribers, after client.dispose() or when the gateway refused a private topic even with the renewed token, and 'unavailable' without an available WebSocket or without a URL (old runtime, no webSocket in the client).