startSync

open fun startSync()

Starts the network transports. Ditto will connect to other devices.

By default Ditto will enable all peer-to-peer transport types available. The default network configuration can be modified via the updateTransportConfig method.

Performance of initial sync when bootstrapping a new peer can be improved by calling disableSyncWithV3 before calling startSync. Only do this when all peers in the mesh are known to be running Ditto v4 or higher.

Throws

Thrown if the Ditto instance hasn't been activated by a successful call to setOfflineOnlyLicenseToken.