diff --git a/examples/transports/1.js b/examples/transports/1.js index f7bb6a67..952f933d 100644 --- a/examples/transports/1.js +++ b/examples/transports/1.js @@ -26,7 +26,7 @@ waterfall([ ], (err) => { if (err) { throw err } - console.log('node has started (true/false):', node.isOn()) + console.log('node has started (true/false):', node.isStarted()) console.log('listening on:') node.peerInfo.multiaddrs.forEach((ma) => console.log(ma.toString())) }) diff --git a/examples/transports/README.md b/examples/transports/README.md index 07fb3872..69ec9f4b 100644 --- a/examples/transports/README.md +++ b/examples/transports/README.md @@ -65,7 +65,7 @@ waterfall([ if (err) { throw err } // At this point the node has started - console.log('node has started (true/false):', node.isOn()) + console.log('node has started (true/false):', node.isStarted()) // And we can print the now listening addresses. // If you are familiar with TCP, you might have noticed // that we specified the node to listen in 0.0.0.0 and port