Next.js Discord

Discord Forum

I wanna use socket io in next js 14

Unanswered
Greyhound posted this in #help-forum
Open in Discord
GreyhoundOP
How to set up socket io both server and client in next 14, please help.

3 Replies

Masai Lion
For socket io to work you will need to setup a custom server and also pure client side components for the front end part. All that said if you are planning to host you app on vercel that won't work either. If you're going to use vps for the deployed app this method is suitable. Other then that you can still make a separate backend server and just connect to it via client side components but then you will need to host it separately.