From 4ae8e43b8b91020c16afc176ad740521d5356ed2 Mon Sep 17 00:00:00 2001 From: Elven Date: Mon, 31 Jul 2017 17:35:08 +0800 Subject: [PATCH] Fix transport example (#114) * fix the readme of transport-example-1 * change wrong node.isOn to node.isStarted() --- examples/transports/1.js | 2 +- examples/transports/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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