Table of Contents

Class Remote

Namespace
PowerSync.Common.Client.Sync.Stream
Assembly
PowerSync.Common.dll
public class Remote
Inheritance
Remote
Inherited Members

Constructors

Remote(IPowerSyncBackendConnector)

Fields

connector
credentials

Methods

FetchCredentials()

Get credentials for PowerSync. This should always fetch a fresh set of credentials - don't use cached values.

GetCredentials()

Get credentials currently cached, or fetch new credentials if none are available. These credentials may have expired already.

Get<T>(string, Dictionary<string, string>?)
InvalidateCredentials()

Immediately invalidate credentials. This may be called when the current credentials have expired.

PostStreamRaw(SyncStreamOptions)

Posts to the stream endpoint and returns a raw NDJSON stream that can be read line by line.

PrefetchCredentials()

Fetch a new set of credentials and cache it. Until this call succeeds, GetCredentials will still return the old credentials. This may be called before the current credentials have expired.