Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Workers don't implement the WebSocket constructor. If you need a WebSocket client, you'll need to us - Cloudflare Developers
CD
Cloudflare Developers
β’
5y ago
MrBBot
Workers don't implement the WebSocket constructor. If you need a WebSocket client, you'll need to us
Workers don
't implement the WebSocket constructor
. If you need a WebSocket client
, you
'll need to use
fetch
fetch
as described here
:
https://developers.cloudflare.com/workers/learning/using-websockets#writing-a-websocket-client
Not sure how easy it would be to alter that library though
.
.
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
86,942
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
You donβt need to buffer the whole thing
CD
Cloudflare Developers / workers-and-pages-discussions
12mo ago
Why don't you have a Workers Observability (logs or tracing) enabled?
CD
Cloudflare Developers / workers-and-pages-discussions
3mo ago
i don't get Workers VPC and Private Link
CD
Cloudflare Developers / workers-and-pages-discussions
12mo ago
Could you use a worker to be a websocket
CD
Cloudflare Developers / workers-and-pages-discussions
4y ago
Next page