© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•13mo ago
FrozenFire

Websocket worker

I am trying to write a worker which handles websockets. I understand that Durable Objects are usually the more suitable solution for this, but I believe that this is the exceptional case. My use-case only involves single clients, without any multi-client coordination.

My existing non-CF-worker codebase uses axum for the HTTP routing service. But, the axum ws flag pulls in a bunch of dependencies which do not build in WASM.

Is there any strategy for getting websocket support in axum working on CF workers?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cloudflare Worker Websocket
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Worker Websocket TTL Cleanup
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
10mo ago
cost of Websocket worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Errors in websocket worker tail
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
4mo ago