Skip to main content

abstract AbstractStreamingSyncImplementation

Extends

Extended by

Implements

Constructors

new AbstractStreamingSyncImplementation()

new AbstractStreamingSyncImplementation(options): AbstractStreamingSyncImplementation

Parameters

ParameterType
optionsAbstractStreamingSyncImplementationOptions

Returns

AbstractStreamingSyncImplementation

Overrides

BaseObserver.constructor

Properties

PropertyType
syncStatusSyncStatus
triggerCrudUpload() => void

Accessors

isConnected

get isConnected(): boolean

Returns

boolean


lastSyncedAt

get lastSyncedAt(): undefined | Date

Returns

undefined | Date

Methods

connect()

connect(options?): Promise<void>

Connects to the sync service

Parameters

ParameterType
options?PowerSyncConnectionOptions

Returns

Promise<void>

Implementation of

StreamingSyncImplementation.connect


disconnect()

disconnect(): Promise<void>

Disconnects from the sync services.

Returns

Promise<void>

Implementation of

StreamingSyncImplementation.disconnect

Throws

if not connected or if abort is not controlled internally


dispose()

dispose(): Promise<void>

Returns

Promise<void>

Implementation of

StreamingSyncImplementation.dispose


getWriteCheckpoint()

getWriteCheckpoint(): Promise<string>

Returns

Promise<string>

Implementation of

StreamingSyncImplementation.getWriteCheckpoint


hasCompletedSync()

hasCompletedSync(): Promise<boolean>

Returns

Promise<boolean>

Implementation of

StreamingSyncImplementation.hasCompletedSync


iterateAsyncListeners()

iterateAsyncListeners(cb): Promise<void>

Parameters

ParameterType
cb(listener) => Promise<any>

Returns

Promise<void>

Implementation of

StreamingSyncImplementation.iterateAsyncListeners

Inherited from

BaseObserver.iterateAsyncListeners


iterateListeners()

iterateListeners(cb): void

Parameters

ParameterType
cb(listener) => any

Returns

void

Implementation of

StreamingSyncImplementation.iterateListeners

Inherited from

BaseObserver.iterateListeners


obtainLock()

abstract obtainLock<T>(lockOptions): Promise<T>

Type parameters

Type parameter
T

Parameters

ParameterType
lockOptionsLockOptions<T>

Returns

Promise<T>


registerListener()

registerListener(listener): () => void

Register a listener for updates to the PowerSync client.

Parameters

ParameterType
listenerPartial<StreamingSyncImplementationListener>

Returns

Function

Returns

void

Implementation of

StreamingSyncImplementation.registerListener

Inherited from

BaseObserver.registerListener


streamingSync()

streamingSync(signal?, options?): Promise<void>

Parameters

ParameterType
signal?AbortSignal
options?PowerSyncConnectionOptions

Returns

Promise<void>

Deprecated

use [connect instead]


waitForReady()

waitForReady(): Promise<void>

Returns

Promise<void>

Implementation of

StreamingSyncImplementation.waitForReady


waitForStatus()

waitForStatus(status): Promise<void>

Parameters

ParameterType
statusSyncStatusOptions

Returns

Promise<void>

Implementation of

StreamingSyncImplementation.waitForStatus