Configure your browser-based libp2p node with DevTools metrics:
import { createLibp2p } from 'libp2p'import { devToolsMetrics } from '@libp2p/devtools-metrics'const node = await createLibp2p({ metrics: devToolsMetrics()}) Copy
import { createLibp2p } from 'libp2p'import { devToolsMetrics } from '@libp2p/devtools-metrics'const node = await createLibp2p({ metrics: devToolsMetrics()})
Then use the DevTools plugin for Chrome or Firefox to inspect the state of your running node.
Configure your browser-based libp2p node with DevTools metrics:
Then use the DevTools plugin for Chrome or Firefox to inspect the state of your running node.