ConnectionState

sealed class ConnectionState

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

Types

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

The connection is established successfully. ç

Link copied to clipboard
data class Disconnected(val backendTimeOffsetMilliseconds: Long? = null, val isInitializing: Boolean = false) : 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

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

Link copied to clipboard
Link copied to clipboard