When I access the web directly, I can establish a websocket connection.When I set up websocket in acapp, it will fail on my pc.
When I use other people's computers, everything works fine.
When the connection fails, the console cannot even give an error message.
here's my code.
this.ws = new WebSocket("wss://www.gascd.club/wss/multiplayer/");
when I open my app in https://www.acwing.com/file_system/file/content/whole/index/content/3268621/, the connection fails. The console log this:game.js:451 WebSocket connection to 'wss://www.gascd.club/wss/multiplayer/' failed: . There is no information behind failed.
when I open my app in https://www.gascd.club/, it works fine.