Closed rsking01 closed 1 year ago
So let me see if I understand. You have a server that you can connect to just fine, but your friend gets this error? In that case you should look at the browser console and network tabs on your friend's browser to see if there are any clues there.
Hello. It turns out that the problem was that my friend was using the http protocol, and the websocket was using wss. This was due to the fact that I sent the link to the site in the messenger without specifying the protocol (example.com). I'm sorry to bother you, thanks for the reply.
After connecting the websocket, it closes without errors (client side), and in the server log I see this:
And I don't understand why it happens. My friend is facing this problem, but my client connects to the socket and everything works fine.
Server code:
Client Code: