Log inGet started

live

The live namespace — the engine's Luau API reference for live.

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.

  • api
  • reference