Class StreamingSyncImplementation
public class StreamingSyncImplementation : ICloseable
- Inheritance
-
StreamingSyncImplementation
- Implements
- Inherited Members
Constructors
Fields
Properties
- IsConnected
Indicates if the sync service is connected.
- LastSyncedAt
The timestamp of the last successful sync.
- SyncStatus
The current synchronization status.
Methods
- CrudUploadLoop(CancellationToken, PowerSyncConnectionOptions)
Uploads local writes for as long as the connection lasts: once on connect, and then whenever TriggerCrudUpload() signals that there may be more.
- RepostUnacknowledgedCheckpointRequests(CancellationToken, PowerSyncConnectionOptions)
Periodically re-posts the current checkpoint request while the service has not applied it yet.
The service is allowed to forget checkpoint requests, and re-posting an id it has already seen is a cheap no-op, so this doubles as a catch-all for requests lost to network failures.
- TriggerCrudUpload()
Requests a CRUD upload, without waiting for it to complete.