setUser method
Setter method that sets the username to be used for the authentication on Lightstreamer Server when initiating the session.
The Metadata Adapter is responsible for checking the credentials (username and password).
Default If no username is supplied, no user information will be sent at session initiation. The Metadata Adapter, however, may still allow the session.
Lifecycle The username should be set on the LightstreamerClient.connectionDetails
object before
calling the LightstreamerClient.connect
method. However, the value can be changed at any time: the
supplied value will be used for the next time a new session is requested to the server.
Notification A change to this setting will be notified through a call to ClientListener.onPropertyChange with argument "user" on any ClientListener listening to the related LightstreamerClient.
-
newVal
The username to be used for the authentication on Lightstreamer Server. The username can be null. -
See setPassword
Implementation
external void setUser(String? newVal);