Skip to content
ArticleIntermediate

Deploy a real-time chat application

Deploy a serverless, real-time chat app where each room is a Durable Object: users connect over WebSockets and history is kept in durable storage.

Last updated
Jan 29, 2026
Read the original

Each chat room is controlled by a Durable Object. Users connect to it with WebSockets, messages are broadcast to everyone in the room, and the history lives in durable storage — a classic example of what Durable Objects are for.

What you’ll learn

  • Clone the chat application
  • Authenticate Wrangler and deploy
  • See how a Durable Object coordinates a room
  • Remove the application when you’re done

Cloudflare products used

Durable Objects, Workers.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

Keep learning