What problem does it solve?
Supabase Realtime enables developers to add live updates, presence, and messaging to apps by broadcasting changes in real time. This Skill provides best practices, patterns, and migration guidance to implement robust, scalable realtime features without compromising security or performance.
Core Features & Use Cases
- Real-time messaging and notifications: implement chat, alerts, and live updates using dedicated, private channels.
- Presence and collaboration: track user presence and build collaborative features with fine-grained access control.
- Migration and optimization: guidance to move from postgres_changes to broadcast and optimize performance with proper RLS and indexing.
Quick Start
Set up a private real-time channel and listen for a broadcast event, for example: channel = supabase.channel('room:123:messages', { config: { private: true } }); channel.on('broadcast', { event: 'message_created' }, handler).subscribe();