Help~ Got connection failed: Error during WebSocket handshake: Unexpected response code: 400
I have a problem connecting to the photon server by unity webGL. It's work fine in Unity Editor, but failed to make a WebSocket connection when being exported to H5 program. I've really have no idea with the problem. Help!
Here's some details:
Unity version:Unity 2019.4.36f1
Pun:2.40 Photon lib:18.104.22.168
I: new SocketWebTcp() for Unity. Server: wss://xxxxx.snowtime.fun:443
E: WebSocket connection to 'wss://xxxxx.snowtime.fun/?libversion=22.214.171.124&sid=30&app=' failed: Error during WebSocket handshake: Unexpected response code: 400
E: writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!
E: Exiting receive thread. Server: wss://xxxxx.snowtime.fun:443:0 Error: abnormal closure