What problem does it solve?
Provides patterns and implementation guidance to deliver live, synchronized data across clients, preventing stale views and enabling collaborative features.
Core Features & Use Cases
- Realtime Subscriptions: Use Supabase Realtime or WebSockets to subscribe to INSERT, UPDATE, and DELETE events and reflect database changes immediately in the UI.
- Presence & Broadcast: Track who's online, broadcast client-to-client events (typing indicators, cursors), and manage presence state.
- Connection Management & Performance: Monitor connection status, handle reconnection, debounce high-frequency events, and ensure subscription cleanup to avoid memory leaks.
- Use Case: Implement live case updates and chat in a legal case management app so multiple staff see new notes, status changes, and typing indicators in real time.
Quick Start
Subscribe to a Supabase channel for the case_updates table, fetch initial rows, update local state on INSERT/UPDATE/DELETE payloads, and unsubscribe on component unmount.