How do you make secure websockets work?

Options
Whenever I chose to start the client with Photon.ConnectionProtocol.Wss, I get the following error:

WebSocket connection to 'wss://app-eu.exitgamescloud.com:19090/' failed: WebSocket opening handshake was canceled

I found documentation on the site about enabling secure websockets, but that seemed to be for when you're connecting to your own server, and you can put an SSL certificate on it. What do I need to do to get it to work?

Comments

  • vadim
    Options
    Use nameserver instead of master for connection.
    Simplest way to do so is to call this.connectToRegionMaster({region-code}).
    See particle demo for connection workflow sample.