Running LoadBalancing Demo with custom server

no1nono1no
edited May 2015 in JavaScript
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

  • vadimvadim admin
    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.
Sign In or Register to comment.