Data Sync

Starting and Stopping Sync

Required only once, initiating the sync process automatically connects you with the mesh network. Once connected, you immediately begin receiving updates from publishing remote peers and sending updates to subscribing remote peers.

Starting Sync

To initiate the sync process:

Swift
Kotlin
JS
Java
C#
C++
Rust
Dart (beta)


Ensure the sync process remains active throughout your app's lifecycle by starting the sync process (startSync) in the top-most scope of your code.

Stopping Sync

To stop the sync process, call the stopSync function. Once called, all active sync subscriptions end and you disconnect from the mesh.

Swift
Kotlin
JS
Java
C#
C++
Rust
Dart (beta)