I am making a game where I have a websocket that works on my local pc. However, in replit, it isn’t registering the client.
In the top image the website is opened. In the bottom image its lacking the "New client connected with ID: "… part on line 14 of index.html and none of the buttons are sending messages to the websocket.
Hey I found that you can connect if you type in the url like this:
Thanks! I didn’t realize I could just do that, I though it got done on the backend by Replit. Thanks!
March 29, 2023, 7:06pm
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.