@ipshipyard/libp2p-inspector
    Preparing search index...
    interface InspectorMetricsInit {
        intervalMs?: number;
        rpc?: "mdns" | "window" | "libp2p";
        serviceTag?: string;
    }
    Index

    Properties

    intervalMs?: number

    How often to pass metrics to the DevTools panel

    rpc?: "mdns" | "window" | "libp2p"

    How to accept/publish RPC messages.

    window - uses the window.postMessage API so communicate with a browser plugin (only available in browsers).

    mdns - start a TCP socket and advertise it to local connections via the _libp2p_inspector_metrics._tcp.local service tag (not available in browsers)

    libp2p - accept incoming libp2p streams with the /libp2p/devtools/1.0.0 protocol

    Defaults to window in browsers and mdns in Node.js

    'window|mdns'
    
    serviceTag?: string

    When used under Node.js this is the mDNS service tag that is advertised

    '_libp2p_inspector_metrics._tcp.local'