Table of Contents

Method Subscribe

Namespace
PowerSync.Common.Client.Sync.Stream
Assembly
PowerSync.Common.dll

Subscribe(SyncStreamSubscribeOptions?)

Adds a subscription to this stream, requesting it to be included when connecting to the sync service. You should keep a reference to the returned ISyncStreamSubscription object as long as you need data for that stream. As soon as Unsubscribe() is called for all subscriptions on this stream, the Ttl starts ticking and will eventually evict the stream (unless Subscribe(SyncStreamSubscribeOptions?) is called again).

Task<ISyncStreamSubscription> Subscribe(SyncStreamSubscribeOptions? options = null)

Parameters

options SyncStreamSubscribeOptions

Returns

Task<ISyncStreamSubscription>