Running LoadBalancing Demo with custom server

no1no
no1no
edited May 2015 in JavaScript and TypeScript
How can I run the demo with custom server? The first argument for LoadBalancingClient is only accepting protocol and setting MasterAddress in cloud-app-info.js does nothing.

Edit: I'm able to run it by replacing this line in app.ts and rebuild the project:
this.connectToRegionMaster("EU");
with
this.setMasterServerAddress("ws://<your server address:port");
this.setNameServerAddress("ws://<your server address:port");
this.connect();

Comments

  • Cloud demos switched to nameserver use recently. For custom server you need to switch them back. You did it right.
    Calling setNameServerAddress is not necessary.