WebSocket connection failed

I've successfully written a multiplayer game using photon that runs at http://localhost:8080/. The intended platform is facebook instant games. Upon upload, the build no longer works due to Websocket issues.
Upon attempting to connect, I receive the following error:

Photon-Javascript_SDK.js:442 WebSocket connection to 'wss://ns.exitgames.com:..libversion=' failed: Error in connection establishment: net::ERR_CONNECTION_RESET

Photon-Javascript_SDK.js:192 PhotonApp: NameServer: PhotonPeer[_onError] - Connection error: Event {isTrusted: true, type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}

How can I get this working in a secure connection?


  • I guess I'll answer this myself. In cloud-app-info.js edit var AppInfo = {
    Wss: true,

    Simple if you know to do it.