Simple class representing a Proxy configuration.

An instance of this class can be used through ConnectionOptions.setProxy(Proxy) to instruct a LightstreamerClient to connect to the Lightstreamer Server passing through a proxy.

Constructor

new(type:String, host:String, port:Int, user:Null<String>, password:Null<String>)

Creates a Proxy instance containing all the information required by the LightstreamerClient to connect to a Lightstreamer server passing through a proxy.
Once created the Proxy instance has to be passed to the LightstreamerClient.connectionOptions instance using the ConnectionOptions.setProxy(Proxy) method.

Parameters:

type

the proxy type

host

the proxy host

port

the proxy port

user

the user name to be used to validate against the proxy

password

the password to be used to validate against the proxy