attachAsync

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

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