diff --git a/examples/eth-dm/src/App.tsx b/examples/eth-dm/src/App.tsx index b375f0cfbc..12590f370e 100644 --- a/examples/eth-dm/src/App.tsx +++ b/examples/eth-dm/src/App.tsx @@ -83,6 +83,11 @@ function App() { .then((address) => setAddress(address)); }); + let peers; + if (waku) { + peers = waku.libp2p.connectionManager.connections.size; + } + return (
@@ -99,6 +104,7 @@ function App() { style={waku ? { color: green[500] } : {}} /> + {peers}