SyncStreamSubscription

A SyncStream that has been subscribed to.

Properties

Link copied to clipboard
abstract val name: String

THe name of the stream as it appears in the stream definition for the PowerSync service.

Link copied to clipboard
abstract val parameters: Map<String, Any?>?

The parameters used to subscribe to the stream, if any.

Functions

Link copied to clipboard
abstract suspend fun unsubscribe()

Removes this subscription.

Link copied to clipboard
abstract suspend fun waitForFirstSync()

A variant of com.powersync.PowerSyncDatabase.waitForFirstSync that is specific to this stream subscription.