Enumeration SyncState

Enumeration Members

Catchup

Emitted after a connectivity error and we're ready to start syncing again

Error

Emitted after we try to sync more than FAILED_SYNC_ERROR_THRESHOLD times and are still failing. Or when we enounter a hard error like the token being invalid.

Prepared

Emitted after the first sync events are ready (this could even be sync events from the cache)

Reconnecting

Emitted for each time we try reconnecting. Will switch to Error after we reach the FAILED_SYNC_ERROR_THRESHOLD

Stopped

Emitted when the sync loop is no longer running

Syncing

Emitted after each sync request happens