Socket io not working on real server or hosting #4629
-
It works fine in localhost but not working in vercel. "dependencies": { //----server side---//
//----clent side---//
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi! Vercel is not really compatible with long-running connections, but any non-serverless platform should work well. See also: https://vercel.com/guides/do-vercel-serverless-functions-support-websocket-connections Reference: https://socket.io/docs/v4/troubleshooting-connection-issues/#deployment-on-a-serverless-platform |
Beta Was this translation helpful? Give feedback.
-
Hey, Vercel does not support web sockets since it uses the server less architecture. I was facing the same problem and https://railway.app is a good option. |
Beta Was this translation helpful? Give feedback.
-
@pushkarsingh019 i deployed to railway.app but its not connecting i am able to connect with localhost. |
Beta Was this translation helpful? Give feedback.
-
We should BuyCott the vercel ,, i think they are need only huge charges from user , and not providing a hassel free experince to their user |
Beta Was this translation helpful? Give feedback.
Hi! Vercel is not really compatible with long-running connections, but any non-serverless platform should work well.
See also: https://vercel.com/guides/do-vercel-serverless-functions-support-websocket-connections
Reference: https://socket.io/docs/v4/troubleshooting-connection-issues/#deployment-on-a-serverless-platform