I’m new to PlayCanvas and looking to use it for my online networked game, but I’m having trouble figuring out how to set up a websocket secure connection.
Initially, I attempted to connect via ws, which runs into the following error message:
Mixed Content: The page at 'https://launch.playcanvas.com/923539?debug=true' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://162.248.94.104:4296/'. This request has been blocked; this endpoint must be available over WSS.
No surprise there, I just switched my client to ‘wss’ and the server over to the ‘https’ package, with my SSL certificate that my website uses all set up.
This issue now - and this may be my lack of understanding of how SSL connections communicate with each other - is that I’m now receiving the error:
WebSocket connection to 'wss://162.248.94.104:4296/' failed: Error in connection establishment: net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH
At this point I’m not entirely sure how to solve the issue. I’m hoping that someone has experience with setting up wss connections with the editor build (which, ideally, would have no trouble being updated with a self-hosted build).