Fix transport example (#114)

* fix the readme of transport-example-1

* change wrong node.isOn to node.isStarted()
This commit is contained in:
Elven 2017-07-31 17:35:08 +08:00 committed by David Dias
parent 6b059a0ba8
commit 4ae8e43b8b
2 changed files with 2 additions and 2 deletions

View File

@ -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()))
})

View File

@ -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