socket.io connection issue in latest updated NEXT JS
Unanswered
Devendra13 posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Devendra13OP
i am trying to add chat functionality in my NEXT js website. I have used socket.io for this purpose. Unfortunately, I have not been able to add connection. Please review my code and let me know how can I fix this issue.
Following is my client side code and server side code;
Following is my client side code and server side code;
![Image](https://cdn.discordapp.com/attachments/1134379052241784862/1134379052359229460/client.png)
![Image](https://cdn.discordapp.com/attachments/1134379052241784862/1134379052598317056/server.png)