Interface DittoConfigConnectServer

Connects this Ditto instance to a Big Peer at the specified URL. This is a substructure of DittoConfig.

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

interface DittoConfigConnectServer {
    mode: "server";
    url: string;
}

Properties

Properties

mode
url: string