实时
Send and receive messages to connected clients.
Supabase 提供了一个全球分布的 Realtime 服务,具备以下特点:
🌐 Supabase provides a globally distributed Realtime service with the following features:
- 广播:在客户端之间发送低延迟消息。非常适合实时消息传递、数据库变更、光标跟踪、游戏事件和自定义通知。
- Presence:跟踪并同步用户在各客户端的状态。非常适合显示谁在线,或活跃的参与者。
- Postgres 变更:实时监听数据库的变化。
你能构建什么? #
🌐 What can you build?
- 聊天应用 - 实时消息传递,带输入指示和在线状态
- 协作工具 - 文档编辑、白板和共享工作区
- 实时仪表板 - 实时数据可视化和监控
- 多人游戏 - 同步的游戏状态和玩家互动
- 社交功能 - 实时通知、互动表情和用户动态
Examples#
- Showcase application displaying cursor movements and chat messages using Broadcast.
Multiplayer.dev
- Supabase UI chat component using Broadcast to send message between users.
Chat
- Supabase UI avatar stack component using Presence to track connected users.
Avatar Stack
- Supabase UI realtime cursor component using Broadcast to share users' cursors to build collaborative applications.
Realtime Cursor
Resources#
Find the source code and documentation in the Supabase GitHub repository: