Interface: SyncStatus
Defined in: packages/client/src/core/sync/index.ts:115
A point-in-time reading of one stack's replication.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
direction | SyncDirection | Direction this handle was started with. | packages/client/src/core/sync/index.ts:121 |
lastActiveAt | number | When documents last moved, in either direction. | packages/client/src/core/sync/index.ts:131 |
lastConvergedAt | number | When the replica last converged - a cycle completed with nothing left to send. null until the first one. This is the value a UI should render as "last synced", not lastActiveAt. | packages/client/src/core/sync/index.ts:129 |
lastError | object | The last failure seen, kept even after replication recovers. | packages/client/src/core/sync/index.ts:133 |
lastError.message | string | - | packages/client/src/core/sync/index.ts:133 |
lastError.name? | string | - | packages/client/src/core/sync/index.ts:133 |
lastError.status? | number | - | packages/client/src/core/sync/index.ts:133 |
live | boolean | Whether the handle is following changes or ran once. | packages/client/src/core/sync/index.ts:123 |
pulled | number | Documents written locally since this handle started. | packages/client/src/core/sync/index.ts:137 |
pushed | number | Documents written to the remote since this handle started. | packages/client/src/core/sync/index.ts:135 |
stack | string | The stack this status belongs to. | packages/client/src/core/sync/index.ts:117 |
state | SyncState | See SyncState. | packages/client/src/core/sync/index.ts:119 |