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.

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