is Connection Enabled
Indicates whether the DatasyncService tries to establish connection to the Webcom back end.
Note that when set to true
, the connection to the Webcom back end is not guaranteed, especially if the network connectivity is down or if the Webcom back end is unreachable. The DatasyncService starts a retry mechanism as soon as the connection is lost, until it is actually established.
To get the actual state of the connection, use DatasyncState.isConnected. The DatasyncService works in online mode as soon as the connection to the Webcom back end is effective or in offline mode otherwise.
When set to false
, the connection to the Webcom back end is guaranteed to be closed. In this state, the DatasyncService works offline until a new connection attempt by setting isConnectionEnabled to true
.