Ditto JS SDK v5.0.0
    Preparing search index...

    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;
    }
    Index

    Properties

    Properties

    mode: "smallPeersOnly"
    privateKey?: string