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
next dev
, the websocket route wouldn't even fire
but when I do pnpm pages:build && wrangler pages dev
, it gave me error like the title
How do I resolve this? thank youCloudflare Docs
Using the WebSockets API · Cloudflare Workers docs
WebSockets allow you to communicate in real time with your Cloudflare Workers serverless functions. In this guide, you will learn the basics of …
0 Replies