DittoTransportConfig

open class DittoTransportConfig(    var connect: DittoConnect = DittoConnect(),     var listen: DittoListen = DittoListen(),     var global: DittoGlobalConfig = DittoGlobalConfig()) : Cloneable

A configuration object specifying which network transports Ditto should use to sync data.

A Ditto object comes with a default transport configuration where all available peer-to-peer transports are enabled. You can customize this by initializing a DittoTransportConfig, adjusting its properties, and supplying it to setTransportConfig() on Ditto.

When you initialize a DittoTransportConfig yourself it starts with all transports disabled. You must enable each one directly.

To connect to a peer at a known location, such as a Ditto Big Peer, add its address inside the connect configuration. These are either "host:port" strings for raw TCP sync, or a "wss://…" URL for websockets.

Constructors

Link copied to clipboard
fun DittoTransportConfig(    connect: DittoConnect = DittoConnect(),     listen: DittoListen = DittoListen(),     global: DittoGlobalConfig = DittoGlobalConfig())

Functions

Link copied to clipboard
open override fun clone(): DittoTransportConfig
Link copied to clipboard
open fun enableAllPeerToPeer()

Properties

Link copied to clipboard
open var connect: DittoConnect
Link copied to clipboard
open var global: DittoGlobalConfig
Link copied to clipboard
open var listen: DittoListen

Inheritors

Link copied to clipboard