Caplin Trader 4.0.1

Interface: module:caplin/services/ConnectionServiceListener

module:caplin/services/ConnectionServiceListener

Listens to connection information provided by the ConnectionService.

Methods

onConnectionAvailable(Liberator)

Will be called when the connection is ready and all the services are up.
Parameters:
Name Type Description
Liberator sLiberatorUrl url which provides the connection.

onConnectionInfo(sMessage)

Will be called when any message which doesn't affect the connection state arrives.
Parameters:
Name Type Description
sMessage sMessage

onConnectionLimited(A)

Will be called when not all sources of data are up and this connection is not completely ok. Some data may be missing or stale.
Parameters:
Name Type Description
A pReasons list of reasons of why this connection is limited.

onConnectionUnavailable(Liberator)

Will be called when the connection is down.
Parameters:
Name Type Description
Liberator sLiberatorUrl url from which the connection has been lost (could be empty if no connection has been stablished at any point).