The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs(realtime): add note about sync event behavior in Presence (#42338)
Jonathan Fulton25f9f7c5e341
diff --git a/apps/docs/content/guides/realtime/presence.mdx b/apps/docs/content/guides/realtime/presence.mdxindex dae2120972f..972446f8850 100644--- a/apps/docs/content/guides/realtime/presence.mdx+++ b/apps/docs/content/guides/realtime/presence.mdx@@ -20,6 +20,12 @@ When any client subscribes, disconnects, or updates their presence payload, Supa- **`join`** — a new client has started tracking presence- **`leave`** — a client has stopped tracking presence+<Admonition type="note" title="Sync event behavior">++During a `sync` event, you may receive `join` and `leave` events simultaneously, even though no users are actually joining or leaving. This is expected behavior—Presence reconciles its local state with the server state, which can trigger these events as part of the synchronization process. This reflects state reconciliation, not real user movement.++</Admonition>+The complete presence state returned by `presenceState()` looks like this:```json