photon html5 sdk can not connect custom server?

Hello, I want to use photon h5 client to connect my own photon server. But I find the API (Photon-Javascript-Sdk_v4-0-0-6 \\ doc), found only through your LoadBalancing.LoadBalancingClient connected to your server, did not find the interface can connect to their own server. so my question is, how to connect to my own hosted Photon Server with the Photon-Javascript SDK? can you help me?

Comments

  • vadim
    vadim mod
    edited June 2017
    Hi,
    Set master server address and connect directly to the master:
    client.setMasterServerAddress("ws://localhost:9090");
    client.connect();