DittoSyncSubscription

A sync subscription configures Ditto to receive updates from remote peers about documents matching the subscription's query.

Create a sync subscription by calling DittoSync.registerSubscription. The subscription will remain active until either explicitly canceled via close or the owning Ditto instance goes out of scope.

Properties

Link copied to clipboard

Convenience property, returns true if the sync subscription has been canceled, otherwise returns false. Also, a sync subscription is considered canceled if the owning Ditto instance goes out of scope.

Link copied to clipboard

The query arguments of the sync subscription (as passed while registering it).

Link copied to clipboard

Documents matching this query will be included in the subscription.

Functions

Link copied to clipboard
open override fun close()