F
now
Syncs now: reads the stored document, merges, applies remote changes here and saves the result. A call while a sync runs queues one more run after it, in this device's mode.
function now(strategy?: SyncStrategy): Promise<boolean>Parameters
| Name | Type | Description |
|---|---|---|
| strategy? | SyncStrategy | How to reconcile the two sides; this device's mode by default. |
Returns
Promise<boolean>Whether the sync succeeded. Failures are recorded as lastError in SYNC_BUCKET.