Connection State
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
Content copied to clipboard
The connection is established successfully. ç
Link copied to clipboard
data class Disconnected(val backendTimeOffsetMilliseconds: Long? = null, val isInitializing: Boolean = false) : DatasyncState.ConnectionState
Content copied to clipboard
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.