Hi!
We have a problem connecting our game to the server via HTML5 when we use websockets.
Here are the extensions we use:
When we connect using ws://ws.domainname.com:2567
All is well - the connection is established. But this solution doesn’t work in browser, we get an error:
Mixed Content: The page at ‘https://game.domainname.com’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://ws.domainname.com:2567/matchmake/joinOrCreate/lobby’. This request has been blocked; the content must be served over HTTPS.
We tried to use wss instead of ws but at the connection we get an error:
ERROR:DLIB: mbedtls_ssl_handshake failed: Unknown error - -29184 (-0x7200)
ERROR:SCRIPT: HTTP request to ‘https://ws.domainname.com:2567/matchmake/joinOrCreate/lobby’ failed (http result: -1 socket result: -100)
We will be very happy. if you tell me how to solve this error.
Thank you!