How to create PhotonPeer to PhotonServer with Photon.ConnectionProtocol.Wss (JS client)

Options
I could connect server using WS, but the system reported an error using WSS

Answers

  • chvetsov
    Options
    hi, @April

    We can not help you without details: where do you connect - cloud or self hosted, error code you get, logs if this is self hosted

    best,
    ilya
  • April
    Options
    self hosted.
    [ERROR]: PhotonPeer[_onConnectFailed] - Socket connection could not be created: wss://127.0.0.1:9090 Wrong host or port?
  • chvetsov
    Options
    yes, it looks like wrong port
    we usually use 19090, 19091 for secure connections

    best
    ilya