subscribe

fun subscribe(): DittoSubscription

Subscribes the device to updates about collections that other devices know about.

The returned DittoSubscription object must be kept in scope for as long as you want to keep receiving updates.

Return

a DittoSubscription object that must be kept in scope for as long as you want to keep receiving updates from other devices about the collections that they know about.