A simple template for working with WebSockets in Cloudflare Workers. Check out the announcement blog post to learn more.
To create a my-project
directory using this template, run:
$ npm init cloudflare my-project worker-websocket
# or
$ yarn create cloudflare my-project worker-websocket
# or
$ pnpm create cloudflare my-project worker-websocket
Note: Each command invokes
create-cloudflare
for project creation.