Listens to connection information provided by the ConnectionService
.
Methods
on Connection Available(liberator Url)
Will be called when the connection is ready and all the services are up.
Parameters:
Name | Type | Description |
---|---|---|
liberatorUrl |
string | Liberator url which provides the connection. |
on Connection Info(message)
Will be called when any message which doesn't affect the connection state arrives.
Parameters:
Name | Type | Description |
---|---|---|
message |
sring |
on Connection Limited(reasons)
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 |
---|---|---|
reasons |
Array |
A list of reasons of why this connection is limited. |
on Connection Unavailable(liberator Url, reasonopt)
Will be called when the connection is down.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
liberatorUrl |
string | Liberator url from which the connection has been lost (could be empty if no connection has been stablished at any point). |
|
reason |
string |
<optional> |
reason why the connection has become unavailable, e.g. "LOGINFAILED". |