getServerSocketName method

String? getServerSocketName()

Inquiry method that gets the instance name of the Server which is serving the current session.

To be more precise, each answering port configured on a Server instance (through a <http_server> or <https_server> element in the Server configuration file) can be given a different name; the name related to the port to which the session opening request has been issued is returned.
Note that each rebind to the same session can, potentially, reach the Server on a port different than the one used for the previous request, depending on the behavior of intermediate nodes. However, the only meaningful case is when a Server cluster is in place and it is configured in such a way that the port used for all bind_session requests differs from the port used for the initial create_session request.

General Edition Note Server Clustering is an optional feature, available depending on Edition and License Type. To know what features are enabled by your license, please see the License tab of the Monitoring Dashboard (by default, available at /dashboard).

Lifecycle If a session is not currently active, null is returned; soon after a session is established, the value will become available.

Notification A change to this setting will be notified through a call to ClientListener.onPropertyChange with argument "serverSocketName" on any ClientListener listening to the related LightstreamerClient.

Returns name configured for the Server instance which is managing the current session, or null.

Implementation

String? getServerSocketName() {
  return _serverSocketName;
}