SharedDataStore.setSyncEnabled method
SharedDataStore › setSyncEnabled
Toggles transport without changing identity or causal state. Persist the preference in consumer settings. Enabling publishes a complete checkpoint so offline sequences cannot leave gaps.Signature:
setSyncEnabled(isEnabled: boolean): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| isEnabled | boolean | Whether to use vault transport for subsequent calls on this instance. |
Returns: Promise<void> — A promise that resolves after synchronization when enabling.