Optional
intervalOptional
rpcHow 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
Optional
serviceWhen used under Node.js this is the mDNS service tag that is advertised
How often to pass metrics to the DevTools panel