Hi, I’m working on a small Glitch project to develop a simple chat system. I’m using socket.io and some other modules. My problem is that i can’t manage to connect sockets to the glitch host of my project. I recreated the project on my pc and everything works fine, which leads me to think that the problem is that i’m trying the wrong host name…
After setting my server i’m trying something like:
const socket = io.connect();
So the question is: which host should i put there? I tried with both my project url and project url/chat (which is the route serving the html page which loads the socket).
So here’s my issue in detail (with source code too): https://stackoverflow.com/questions/53936036/how-can-i-connect-a-socket-to-the-server
Thanks a lot!