Type Alias ConnectionState
ConnectionState:
| { state: "disconnected" }
| { state: "connecting" }
| { state: "connected" }
| { state: "reconnecting"; nextAttemptAt: Temporal.Instant }
Type Declaration
- { state: "disconnected" }
- { state: "connecting" }
- { state: "connected" }
- { state: "reconnecting"; nextAttemptAt: Temporal.Instant }
state: "reconnecting"
nextAttemptAt: Temporal.Instant
Liveness of the connection to the homeserver. Discriminated by
state.The reconnect task transitions:
"disconnected"→"connecting"→"connected", and on failure →"reconnecting"(carriesnextAttemptAtfor backoff display).