Lightstreamer tvOS Client
2.1.2
Native tvOS Client library for Lightstreamer
|
Used by LSLightstreamerClient to provide a basic connection properties bean. More...
#import <LSConnectionDetails.h>
Instance Methods | |
(void) | - setPassword: |
Setter method that sets the password to be used for the authentication on Lightstreamer Server when initiating the push session. More... | |
Properties | |
NSString * | adapterSet |
Name of the Adapter Set (which defines the Metadata Adapter and one or several Data Adapters) mounted on Lightstreamer Server that supply all the items used in this application. More... | |
NSString * | serverAddress |
Configured address of Lightstreamer Server. More... | |
NSString * | serverInstanceAddress |
Server address to be used to issue all requests related to the current session. More... | |
NSString * | serverSocketName |
Instance name of the Server which is serving the current session. More... | |
NSString * | sessionId |
ID associated by the server to this client session. More... | |
NSString * | user |
Username to be used for the authentication on Lightstreamer Server when initiating the push session. More... | |
Used by LSLightstreamerClient to provide a basic connection properties bean.
Bean object that contains the configuration settings needed to connect to a Lightstreamer Server.
An instance of this class is attached to every LSLightstreamerClient as LSLightstreamerClient::connectionDetails
- (void) setPassword: | (nullable NSString *) | password |
Setter method that sets the password to be used for the authentication on Lightstreamer Server when initiating the push session.
The Metadata Adapter is responsible for checking the credentials (username and password). If no password is supplied, no password information will be sent at session initiation. The Metadata Adapter, however, may still allow the session. 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.
NOTE: The password string will be stored in the current instance. That is necessary in order to allow automatic reconnection/reauthentication for fail-over. For maximum security, avoid using an actual private password to authenticate on Lightstreamer Server; rather use a session-id originated by your web/application server, that can be checked by your Metadata Adapter.
A change to this setting will be notified through a call to LSClientDelegate::propertyDidChange with argument "password" on any LSClientDelegate listening to the related LSLightstreamerClient.
password | The password to be used for the authentication on Lightstreamer Server. The password can be nil. |
|
readwritenonatomiccopy |
Name of the Adapter Set (which defines the Metadata Adapter and one or several Data Adapters) mounted on Lightstreamer Server that supply all the items used in this application.
An Adapter Set defines the Metadata Adapter and one or several Data Adapters. It is configured on the server side through an "adapters.xml" file; the name is configured through the "id" attribute in the <adapters_conf> element. The default Adapter Set, configured as "DEFAULT" on the Server. The Adapter Set name 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.
This setting can also be specified in the LSLightstreamerClient constructor. A nil value is equivalent to the "DEFAULT" name.
A change to this setting will be notified through a call to LSClientDelegate::propertyDidChange with argument "adapterSet" on any LSClientDelegate listening to the related LSLightstreamerClient.
|
readwritenonatomiccopy |
Configured address of Lightstreamer Server.
Note that the addresses specified must always have the http: or https: scheme. In case WebSockets are used, the specified scheme is internally converted to match the related WebSocket protocol (i.e. http becomes ws while https becomes wss). WSS/HTTPS connections are not supported by the Server if it runs in Allegro edition. WSS/HTTPS connections are not supported by the Server if it runs in Moderato edition. If no server address is supplied the client will be unable to connect. This method can be called at any time. If called while connected, it will be applied when the next session creation request is issued. This setting can also be specified in the LightstreamerClient constructor. A nil value can also be used, to restore the default value. An IPv4 or IPv6 can also be used in place of a hostname. Some examples of valid values include:
A change to this setting will be notified through a call to LSClientDelegate::propertyDidChange with argument "serverAddress" on any LSClientDelegate listening to the related LSLightstreamerClient.
NSException | if the given address is not valid. |
|
readnonatomicassign |
Server address to be used to issue all requests related to the current session.
In fact, when a Server cluster is in place, the Server address specified through serverAddress can identify various Server instances; in order to ensure that all requests related to a session are issued to the same Server instance, the Server can answer to the session opening request by providing an address which uniquely identifies its own instance. When this is the case, this address is returned by the method; otherwise, nil is returned.
Note that the addresses will always have the http: or https: scheme. In case WebSockets are used, the specified scheme is internally converted to match the related WebSocket protocol (i.e. http becomes ws while https becomes wss).
Server Clustering is not supported when using Lightstreamer in Moderato edition.
The method gives a meaningful answer only when a session is currently active.
A change to this setting will be notified through a call to LSClientDelegate::propertyDidChange with argument "serverInstanceAddress" on any LSClientDelegate listening to the related LSLightstreamerClient.
|
readnonatomicassign |
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 in case of polling or in case rebind requests are needed, subsequent requests related to the same session may be issued to a port different than the one used for the first request; the names configured for those ports would not be reported. This, however, can only happen when a Server cluster is in place and particular configurations for the load balancer are used.
Server Clustering is not supported when using Lightstreamer in Moderato edition.
The method gives a meaningful answer only when a session is currently active.
A change to this setting will be notified through a call to LSClientDelegate::propertyDidChange with argument "serverSocketName" on any LSClientDelegate listening to the related LSLightstreamerClient.
|
readnonatomicassign |
ID associated by the server to this client session.
The method gives a meaningful answer only when a session is currently active.
A change to this setting will be notified through a call to LSClientDelegate::propertyDidChange with argument "sessionId" on any LSClientDelegate listening to the related LSLightstreamerClient.
|
readwritenonatomiccopy |
Username to be used for the authentication on Lightstreamer Server when initiating the push session.
The Metadata Adapter is responsible for checking the credentials (username and password). If no username is supplied, no user information will be sent at session initiation. The Metadata Adapter, however, may still allow the session. The username should be set on the LSLightstreamerClient::connectionDetails object before calling the connect (LSLightstreamerClient) 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.
A change to this setting will be notified through a call to LSClientDelegate::propertyDidChange with argument "user" on any LSClientDelegate listening to the related LSLightstreamerClient.