Log inGet started

live

Updated 22 August 2026

The live namespace — 1 function.

live/isConnected

live.isConnected() -> boolean

True when the engine currently holds an established live SpacetimeDB session — the handshake completed and the connection has not dropped. Mirrors the engine's SpacetimeClientResource state, refreshed once per frame by the connection observer. Use it to gate connection-dependent work or to drive reconnect / status UI. The trusted entrypoint additionally receives an onLiveConnectionChanged(connected) lifecycle callback on every transition (drop -> false, (re)connect -> true), so a banner can be raised/torn down without polling.

Returns boolean — true iff a live session is currently established.

  • api
  • reference