Skip to content

SyncState

Defined in: src/sync.ts:80

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: "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: "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: "STOPPED"

Defined in: src/sync.ts:89

Emitted when the sync loop is no longer running


Syncing: "SYNCING"

Defined in: src/sync.ts:91

Emitted after each sync request happens