'How to change path of socket.io in socket.io.slim.js

I am using socket.io for multiuser experience in one of our metaverse projects. We have deployed the code in a https server and after deploying the multiuser experience collapsed. When check for errors, we have found the following error. enter image description here

enter image description here

we need to change the path of Url for where it needs to look for socket.io.

Can someone suggest any ideas for changing this path?



Solution 1:[1]

This usually means one of 2 things:

  1. the socket.io server is not running
  2. the socket.io server is running on a different place

Make sure socket.io is using the HTTPS server, not the HTTP one, and the client is connecting to the correct domain.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Coder Gautam YT