Get Node URL from LB1

Gabor Nagy

New Member
I'll keep that in mind, however the idea was to use the LB just to query for the "best" server to start a new stream on, connecting directly to the server instead of going thru a proxy. In that scenario we still need the url
 

Max

Administrator
Staff member
HTTP: http://WCS_HOST:8081/?action=server_list
HTTPS: https://WCS_HOST:8444/?action=server_list

For client to connect to a node returned by load balancer, load balancer URL has to be passed when connection session is created:
Code:
Flashphoner.createSession({urlServer:LB_HOST, lbUrl:"http://WCS_HOST:8081/?action=server_list"})
or
Code:
Flashphoner.createSession({urlServer:LB_HOST, lbUrl:"https://WCS_HOST:8444/?action=server_list"})
If load balancing is disabled, or no nodes are available or enabled, connection will be established to address in 'urlServer' parameter.
 
Top