SentinelMarker

internal sealed class SentinelMarker

Sentinel marker, that serves as an indicator that the current initial sync has finished for this websocket session.

Inheritors

Types

Link copied to clipboard
internal data class Marker(val value: String) : SentinelMarker

A marker for the current initial sync, with a uuid value that will be compared against the sentinel event sent by the server.

Link copied to clipboard
internal data object None : SentinelMarker

No current marker, used for the legacy system or when the initial sync is finished.

Functions

Link copied to clipboard
internal fun getMarker(): String

Returns the marker, if any, otherwise an empty string.