Websoket connection detail

Hi @trishalamjain,

Due to the nature of Vercel’s serveless infrastructure, WebSocket connections aren’t supported.
While Vercel Functions technically support streaming responses, they have a maximum execution limit and will time out after a certain amount of time, so keeping a connection (via WS) alive isn’t possible in this case.

Alternatively, you can also fetch realtime data on-demand, using packages like SWR.

You can learn more in this troubleshooting Guide here.