SyncOptions

class SyncOptions(val newClientImplementation: Boolean = false, val userAgent: String = userAgent(), val clientConfiguration: SyncClientConfiguration? = null)(source)

Experimental options that can be passed to PowerSyncDatabase.connect to specify an experimental connection mechanism.

The new connection implementation is more efficient and we expect it to become the default in the future. At the moment, the implementation is not covered by the stability guarantees we offer for the rest of the SDK though.

Constructors

Link copied to clipboard
constructor(newClientImplementation: Boolean = false, userAgent: String = userAgent(), clientConfiguration: SyncClientConfiguration? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Allows configuring the HttpClient used for connecting to the PowerSync service.

Link copied to clipboard
Link copied to clipboard

The user agent to use for requests made to the PowerSync service.