xmpp_p2p
    Preparing search index...

    Function readDhtJson

    • Reads and parses JSON from the DHT if the content routing API is available.

      Type Parameters

      • T

      Parameters

      • libp2p: Libp2p

        Active libp2p node.

      • key: Uint8Array

        DHT key to query.

      Returns Promise<T | undefined>

      Parsed JSON or undefined when no value exists.