Chat demo

Real-time messages through a Durable Object (WebSocketChat, room chat-room). Recent messages are replayed when you join; open another tab to see live updates.

Same pattern as Cloudflare's WebSocket hibernation example: one Durable Object per room (chat-room). History is stored in the DO so new joiners see recent messages.

connecting
  • Waiting for messages…