Replies: 4 comments 12 replies
|
Hi @micahlt Serverless Functions do not support WebSockets. (docs) Instead of pushing data, you can intelligently fetch data on-demand. For example, the Vercel dashboard delivers real-time updates using SWR. If you need persistent connections to push data to the client, consider using third party pub/sub services. See the Pusher Channels Guide for an example. |
|
Aww man, just discovering this now. I used to have a websocket app live on zeit now but after the switch to vercel it no longer works. Still not sure if this is on my end, but this is a huge bummer if so. |
|
For folks needing WebSockets: https://blog.fanout.io/2020/09/21/vercel-and-websockets/ |
|
I don't understand the responses here saying it's not possible - perhaps it's just because this is an old thread. However, today, Vercel Edge Functions are built on Cloudflare Workers, which do appear to support websockets. |
Uh oh!
There was an error while loading. Please reload this page.
It seems like Vercel with its supposedly easy-to-set-up serverless functions lacks the ability to use websockets. This drastically weakens Vercel, and I'm very disappointed. Is websocket support on the plan for the future?
All reactions