Websocket connection can't be established from Cloudflare Worker

Hi, I’m experiencing this issue where web socket connection can be established locally. But when trying this in a deployed Cloudflare Worker, I’ve got the following error:

Error: Uncaught TypeError: Failed to establish the WebSocket connection: expected server to reply with HTTP status code 101 (switching protocols), but received 404 instead.

I receive 404 when using wss & 520 when using ws

It seems like access from Cloudflare is blocked?

Nvm, this seems like an issue with Cloudflare 🐛 Bug Report — Runtime APIs `WebSocket` can't connect to remote server when using custom port number · Issue #1751 · cloudflare/workerd · GitHub

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.