Server

data class Server(val url: URI) : DittoConfigConnect

Connects this Ditto instance to a Big Peer at the specified URL.

Important: For sync to work with server connections, Ditto requires (a) a DittoAuthenticationExpirationHandler to be set via ditto.auth.expirationHandler, and (b) that handler to properly authenticate when requested. Ditto.startSync will throw if the expiration handler is null.

Parameters

url

The URL of the Big Peer to connect to.

Constructors

Link copied to clipboard
constructor(url: URI)

Properties

Link copied to clipboard
val url: URI