composeSyncStream

fun PowerSyncDatabase.composeSyncStream(name: String, parameters: Map<String, JsonParam>? = null, ttl: Duration? = null, priority: StreamPriority? = null): SyncStreamStatus?(source)

Subscribes to a com.powersync.sync.SyncStream as long as the current composition is active.

For more details on sync streams, see the documentation.