LiveQueryPublisher
struct LiveQueryPublisher : Publisher
A Combine publisher that produces documents matching the requested query.
Warning: Creating a new LiveQueryPublisher also creates a new Ditto subscription.
It is recommended to keep subscriptions as long-lasting as possible for performance reasons. Instead consider creating a Publisher that operates on device’s own local store and leverage existing subscriptions.
-
Declaration
Swift
public typealias Output = Snapshot
-
Declaration
Swift
public typealias Failure = Never
-
Declaration
Swift
public func receive<S>(subscriber: S) where S : Subscriber, S.Failure == Never, S.Input == (documents: [DittoDocument], event: DittoLiveQueryEvent)