Failed to load resource: the server responded with a status of 404 ()


I have a problem with in my app My app make socket connection to server when a client connects immediatly. The error occurs with the same description as title of the topic. But when I run my app locally, everything is fine.
On the client side I create a socket object by io.connect(). I tried also io().connect() and io( "", {"rejectUnauthorized" : false}).connect(), but the result the same.

It is my first time when I deploy the project. So I don’t know what details I have to provide or how configure socket connection. Thanks.

@PhovDeWae Where are you hosting the socket server?

If you’re trying to host it on Netlify that will be your problem, see my answer to someone else here: