SyncState
Defined in: src/sync.ts:80
Enumeration Members
Section titled “Enumeration Members”Catchup
Section titled “Catchup”Catchup:
"CATCHUP"
Defined in: src/sync.ts:93
Emitted after a connectivity error and we’re ready to start syncing again
Error:
"ERROR"
Defined in: src/sync.ts:84
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
Section titled “Prepared”Prepared:
"PREPARED"
Defined in: src/sync.ts:87
Emitted after the first sync events are ready (this could even be sync events from the cache)
Reconnecting
Section titled “Reconnecting”Reconnecting:
"RECONNECTING"
Defined in: src/sync.ts:97
Emitted for each time we try reconnecting. Will switch to Error after
we reach the FAILED_SYNC_ERROR_THRESHOLD
Stopped
Section titled “Stopped”Stopped:
"STOPPED"
Defined in: src/sync.ts:89
Emitted when the sync loop is no longer running
Syncing
Section titled “Syncing”Syncing:
"SYNCING"
Defined in: src/sync.ts:91
Emitted after each sync request happens