Socket.io Port same as server port?

Hi,

I have a MERN app with an express server that handles requests to my API. I want to add a chat functionality with Socket.io. Is it OK to use the same port as the server, or should I use a different one?

Yep, that’s the normal configuration, there’s no issue doing that.

1 Like