SmallPeersOnly

data class SmallPeersOnly(val privateKey: String? = null) : DittoConfigConnect

Restricts connectivity to small peers only, optionally using a shared secret (in the form of a private key) for authentication.

If a privateKey is provided, it will be used as a shared secret for authenticating peer-to-peer connections. The default value is null, which means no encryption is used in transit.

Parameters

privateKey

Optional private key for peer authentication. Defaults to null.

Constructors

Link copied to clipboard
constructor(privateKey: String? = null)

Properties

Link copied to clipboard
val privateKey: String? = null

Functions

Link copied to clipboard
open override fun toString(): String