TypeError: Web Socket request did not return status 101 Switching Protocols response with Web Socket
Hi, got this error when running websocket in Cloudflare Pages Function Nextjs
I followed this example https://developers.cloudflare.com/workers/examples/websockets/
this is my code
If I do
but when I do
How do I resolve this? thank you
I followed this example https://developers.cloudflare.com/workers/examples/websockets/
this is my code
If I do
next dev, the websocket route wouldn't even firebut when I do
pnpm pages:build && wrangler pages dev, it gave me error like the titleHow do I resolve this? thank you
Cloudflare Docs
WebSockets allow you to communicate in real time with your Cloudflare Workers serverless functions. In this guide, you will learn the basics of …
