spacetimedb-clients
Installation
SKILL.md
Use this skill for SDK concepts shared across languages.
Core client flow
- Generate module bindings from the current module, not stale checked-in examples.
- Build a
DbConnectionwith the host URI, database name or identity, optional auth token, and connection callbacks. - Start or tick the connection according to the SDK. Some SDKs do not process callbacks until advanced.
- Register row/reducer/subscription callbacks before relying on them.
- Subscribe to tables or queries; subscribed rows appear in the local cache after the subscription is applied.
- Read data from the local cache through generated table handles.
- Invoke reducers through generated reducer handles; observe reducer outcomes through SDK-specific events or event tables.