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

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

Answers

  • 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
  • self hosted.
    [ERROR]: PhotonPeer[_onConnectFailed] - Socket connection could not be created: wss://127.0.0.1:9090 Wrong host or port?
  • yes, it looks like wrong port
    we usually use 19090, 19091 for secure connections

    best
    ilya
Sign In or Register to comment.