Loading articleโฆ
Loading 4weirdโฆ
Loading 4weirdโฆ
Loading articleโฆ
DocsNotifications + Chat
Docs ยท remastery wave 1
The Wave 1 realtime layer: a global notification center with categories and unread badges, plus private direct chat with 1-on-1 threads and squad threading โ both powered by Supabase Realtime, both fail-open when the socket drops.
Notifications
A global dropdown subscribed to Realtime changes on notifications. Every notification carries a category (squad, game, chat, compute, system), a title, a message, an optional action URL, and metadata. A completed render, a sprint update, or a raid call plays a chime and increments the unread badge; an in-memory 5-second rate limiter keeps storms from melting the UI.
notification center
3 unreadChat
Direct messaging between squad co-developers and clan members: threads with participants and per-user last-read cursors, messages with attachments, realtime delivery over broadcast channels. Threads can be 1-on-1 or group; every read requires membership, and every insert requires the sender to be a participant.
๐ฌ 1-on-1 threads
Two participants, multisession delivery, read cursors per user so nobody loses their place.
๐ฅ Squad threading
Group threads for sprint war-rooms and raid coordination โ membership-gated, realtime, archived with the squad.
Resilience
Worked example
Tuesday evening on the GraveGain squad: one raid call fans out from a single notification into a war-room thread, a render ping, and a sprint update. Four pings, zero meetings.
raid night timeline
4 pingsThe lead's raid call carries an action URL straight into the squad thread, so members tap once and land in the war room. The render ping arrives mid raid without breaking focus, and the moved card closes the loop on the squad kanban board. When ten events fire in a minute, the 5 second rate limiter folds them into calm badges instead of a chime avalanche. Squad setup lives in squad workspaces.
Troubleshooting