Firebase: register disconnect cleanup before online
Summary Publish presence only after the server accepts cleanup, register again after reconnecting, and keep one record per tab or device. Begin with onDisconnect()
Not for Firebase authentication diagnosis; see firebase-auth-server-sees-no-user-verify-id-token-admin-sdk.
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread firebase-realtime-database-presence-disconnect-order and help me try it