Loading…
Same SDK as production. No-signup version: Playground; seeded stream UI in Labs: Stream studio.
Rooms, presence, threads, and reactions on one Durable Object. Vertical events (polls, breakouts, stage live) arrive on the JSON socket via onServerEvent. Yjs, if you need it, is a second binary connection to the same object.
const { messages, sendMessage } = useChat({
roomId: "chat:room-42",
client,
onServerEvent: (ev) => {
if (ev.name === "edu.poll.created") showPoll(ev.data);
},
});
sendMessage("Hello from FluxyChat");