Next.js Discord

Discord Forum

Websockets with NextJS 15 (AppRouter) and Vercel deployment

Answered
Pomeranian posted this in #help-forum
Open in Discord
PomeranianOP
Hey, I'm new to Next.js development. I want to build a full-stack app that provides real-time updates in the frontend, ideally using WebSockets (Socket.io or similar). However, I read online that this isn't so straightforward in the Vercel deployment environment because Vercel is serverless. What options do I have? I started using SSE for this, but it's been acting up for me. I'd appreciate any suggestions.
Answered by Asian black bear
You either need a dedicated web socket server hosted elsewhere or use a service such as Pusher, Ably or self-host soketi.
View full answer

2 Replies

Asian black bear
You either need a dedicated web socket server hosted elsewhere or use a service such as Pusher, Ably or self-host soketi.
Answer
PomeranianOP
Okay Thank you a lot!