This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
Error: WebSocket Constructor: The protocols array cannot be empty. #2972
Replies: 2 comments 1 reply
-
I can build and start locally, but deployment on Vercel fails. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @aLIEzsss4. Can you try running it as a Serverless Function instead of an Edge Function? You can do it either by changing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Page to Investigate
https://vercel.com/aliez/eths-realtime/logs
Steps to Reproduce
src/app/api/realtime/route.ts
This error is occurring because you are not providing a protocols option when initializing a WebSocket.
Beta Was this translation helpful? Give feedback.
All reactions