Is Next.js :handshake: websockets stable with next.js + vercel?
Answered
Barbary Lion posted this in #help-forum
Barbary LionOP
I'm trying to make a realtime chat app and wanted to know if next.js/vercel was a good stack to build on.
There will be a lot of logic around room creation, who can see what messages, and who can join what channel. So a lot of business logic and db queries will be required.
There will be a lot of logic around room creation, who can see what messages, and who can join what channel. So a lot of business logic and db queries will be required.
Answered by joulev
websocket doesn't work on vercel. this is a fundamental limitation of serverless platforms.
if you have a vps, yes nextjs and ws work well together.
if you have a vps, yes nextjs and ws work well together.
1 Reply
@Barbary Lion I'm trying to make a realtime chat app and wanted to know if next.js/vercel was a good stack to build on.
There will be a lot of logic around room creation, who can see what messages, and who can join what channel. So a lot of business logic and db queries will be required.
websocket doesn't work on vercel. this is a fundamental limitation of serverless platforms.
if you have a vps, yes nextjs and ws work well together.
if you have a vps, yes nextjs and ws work well together.
Answer