Open two tabs. The messages stay in the same room.
Choose a room and send a message. Everyone in that room receives it live; other rooms stay isolated, and an AI agent can subscribe to the same event stream.
RoomCurrently in general — different rooms are isolated from each other, so you only receive messages from this room (subscribe with &room=, publish with ?room=, and the platform routes by room). This page switches rooms on the front end for demonstration; in a real product, room isolation is enforced by a backend token-broker that mints room-scoped tokens.
Fill in a key and press Connect — recent messages in this room are replayed first, then your messages and other visitors' new messages appear here in realtime.
When several people open this page at once, each message carries a per-tab random cid — only messages sent from your own tab are highlighted on the right; others appear on the left. Messages are published to the same topic as { app:"chat", user, text, ts }.