syncAsync

fun syncAsync(document: Document? = null): Deferred<Boolean>

Pushes local changes of the attached documents to the server and receives changes of the remote replica from the server then apply them to local documents.