Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Deploy a real-time chat application

A step-by-step tutorial for deploying a serverless real-time chat application using Cloudflare Workers, Durable Objects, and WebSockets.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Deploy a real-time chat application

A step-by-step tutorial for deploying a serverless real-time chat application using Cloudflare Workers, Durable Objects, and WebSockets.

When To Use

Use when you need to implement a real-time communication system using Durable Objects and WebSockets on Cloudflare Workers.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-deploy-a-realtime-chat-app-index-real-time-application-workflow-guide.mdA step-by-step tutorial for deploying a serverless real-time chat application using Cloudflare Workers and Durable Objects.Questions about a step-by-step tutorial for deploying a serverless real-time chat application using Cloudflare Workers and Durable Ob...
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar.textThe git clone command used to retrieve the source code for the Cloudflare Workers real-time chat application tutorial.Exact payloads, commands, or snippets shown in The git clone command used to retrieve the source code for the Cloudflare Workers real-time chat application tutorial.
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar-2.textA sequence of terminal commands and instructions for deploying a real-time chat application using Cloudflare Workers.Exact payloads, commands, or snippets shown in A sequence of terminal commands and instructions for deploying a real-time chat application using Cloudflare Workers.
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar-3.textThe wrangler deploy command used to deploy the real-time chat application to Cloudflare Workers.Exact payloads, commands, or snippets shown in The wrangler deploy command used to deploy the real-time chat application to Cloudflare Workers.
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar-4.textA wrangler.toml configuration file defining the environment settings and routes for a real-time chat application on Cloudflare Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining the environment settings and routes for a real-time chat application on C...
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar-5.textA configuration snippet defining the routes pattern and zone ID for the real-time chat application deployment.Exact payloads, commands, or snippets shown in A configuration snippet defining the routes pattern and zone ID for the real-time chat application deployment.
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar-6.textA wrangler.toml configuration file defining the routes and environment settings for a real-time chat application deployment.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining the routes and environment settings for a real-time chat application depl...
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar-7.textA configuration snippet defining the routes and custom domain settings for a real-time chat application deployment.Exact payloads, commands, or snippets shown in A configuration snippet defining the routes and custom domain settings for a real-time chat application deployment.
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar-8.textA wrangler.toml configuration file defining Durable Object bindings and migrations for a real-time chat application.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining Durable Object bindings and migrations for a real-time chat application.
examples/workers-deploy-a-realtime-chat-app-index-real-time-application-cloudflar-9.textA configuration snippet defining Durable Object migrations for ChatRoom and RateLimiter classes.Exact payloads, commands, or snippets shown in A configuration snippet defining Durable Object migrations for ChatRoom and RateLimiter classes.

What This Skill Covers

  • In this tutorial, you will deploy a serverless, real-time chat application that runs using Durable Objects.
  • Main sections: Tags, Before you start, Clone the chat application repository, Authenticate Wrangler, Deploy your project.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/tutorials/deploy-a-realtime-chat-app/index.md