How do you make secure websockets work?

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

WebSocket connection to 'wss://' 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?


  • 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.