attachAsync

fun attachAsync(document: Document, initialPresence: P = emptyMap(), syncMode: Client.SyncMode = SyncMode.Realtime): Deferred<OperationResult>

Attaches the given Document to this Client. It tells the server that this Client will synchronize the given document.