setHosts(hostConfigs)

edit

setHosts(hostConfigs)

edit

Use this method to dynamically change the list or hosts the client uses.

args

edit

hostConfigs

Array<HostConfig> — any valid host config value, as accepted by the client constructor. Each value can be either a url string, an object describing the values detailed in the host[host] docs, or an instance of the Host class.