Realtime: Broadcast Replay
Blog post from Supabase
Broadcast Replay for Realtime is a new feature designed to prevent users from missing critical messages in real-time applications, even in the event of connection drops, mid-session joins, or page reloads. This feature addresses the challenge of users losing important context due to network interruptions by allowing private channels to access earlier messages, thereby improving user experience without the need for complex state management solutions. Broadcast Replay can be applied in various real-world scenarios such as chat applications, live sports updates, and collaborative editing by displaying recent messages to users as they re-enter or reconnect, enriched with metadata for distinguishing replayed messages. Currently available in Public Alpha for Supabase JavaScript client version 2.74.0 or later, the feature requires appropriate RLS policies and invites user feedback for further refinement.