ConnectionState

sealed class ConnectionState

Represents the state of the real-time connection (web-socket) of a DatasyncService to the Webcom back end.

Types

Connected
Link copied to clipboard
data class Connected(backendTimeOffsetMilliseconds: Long) : DatasyncState.ConnectionState

The connection is established successfully. ç

Disconnected
Link copied to clipboard
data class Disconnected(backendTimeOffsetMilliseconds: Long?, isInitializing: Boolean) : DatasyncState.ConnectionState

The connection is not (yet) established. This may be either because the DatasyncService.isConnectionEnabled has been set to false or because the Webcom back end cannot be reached from the running device.

Properties

backendTimeOffsetMilliseconds
Link copied to clipboard
abstract val backendTimeOffsetMilliseconds: Long?

Time offset measured at the establishment of the real time connection to the Webcom back end between the running device clock and the Webcom back end clock.

Inheritors

DatasyncState.ConnectionState
Link copied to clipboard
DatasyncState.ConnectionState
Link copied to clipboard