SyncStreamSubscription
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
name | string | The name of the stream as it appears in the stream definition for the PowerSync service. | SyncStreamDescription.name |
parameters | Record<string, any> | null | The parameters used to subscribe to the stream, if any. The same stream can be subscribed to multiple times with different parameters. | SyncStreamDescription.parameters |
Methods
unsubscribe()
unsubscribe(): void;
Removes this stream subscription.
Returns
void
waitForFirstSync()
waitForFirstSync(abort?): Promise<void>;
A promise that resolves once data from in this sync stream has been synced and applied.
Parameters
| Parameter | Type |
|---|---|
abort? | AbortSignal |
Returns
Promise<void>