Cloudflare Vite Websocket -> Cloudflare Tunnel

I can't seem to get a websocket connection that goes from my Vite frontend, to the worker backend, to my Durable Object, to successfully connect through Cloudflare Tunnel with wss:// It is all part of the same monorepo and being run with the Cloudflare Vite plugin Any ideas of things to try?
1 Reply
sirhype
sirhypeOP4w ago
Resolved! Turns out it was this bug: https://github.com/cloudflare/workers-sdk/issues/10045 Solved by patching the package
GitHub
vite-plugin websocket proxy doesn't work when using an address othe...
What versions & operating system are you using? Wrangler 4.25.0, Vite 7.0.5, macOS 15.5 Please provide a link to a minimal reproduction https://github.com/russelldavis/workers-chat-demo/tree/vi...

Did you find this page helpful?