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 try! ditto startsync()try { ditto startsync() } catch (e dittoerror) { // handle error }try { ditto startsync() } catch (err) { // handle error }try { ditto startsync(); } catch(dittoerror e) { // handle error }try { ditto startsync(); } catch (dittoexception ex) { // handle exception }try { ditto start sync(); } catch (const dittoerror \&err) { std cerr << err what(); }ditto try start sync()?; 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 try! ditto stopsync()try { ditto stopsync() } catch (e dittoerror) { // handle error }try { ditto stopsync() } catch (err) { // handle error }try { ditto stopsync(); } catch(dittoerror e) { // handle error }try { ditto stopsync(); } catch (dittoexception ex) { // handle exception }try { ditto stop sync(); } catch (const dittoerror \&err) { std cerr << err what(); }ditto try stop sync()?;