Interface DittoConfigConnectSmallPeersOnly

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.

interface DittoConfigConnectSmallPeersOnly {
    mode: "smallPeersOnly";
    privateKey?: string;
}

Properties

Properties

mode
privateKey?: string