RealtimeWebSocket channels & presence
realtimeLive channels with persistence and presence. One WS per channel.
Public lounge
Ready
Real WebSocket channel. Anyone visiting this page is in the same room as you. Messages persist (so you'll see scrollback); typing indicators don't. Be cool.
The actual flow
- 1Mint a short-lived WS token (server-side)
POST /edge/realtime/token { user_id, name, ttl: 3600 } - 2Open one WebSocket per channel
wss://cohesivity.ai/edge/realtime?token=…&channel=playground:lounge - 3Publish on the same socket
{ action: "publish", event: "message", data: {…} } - 4Receive everything through the same socket