docs(examples): Peer and Content Routing 1 and 2 (#107)

This commit is contained in:
David Dias
2017-07-20 14:19:36 -07:00
committed by GitHub
parent 76ef5fdf50
commit 06eb7a19f3
7 changed files with 250 additions and 15 deletions

View File

@ -28,6 +28,8 @@ class Node extends EventEmitter {
this.modules = _modules
this.peerInfo = _peerInfo
this.peerBook = _peerBook || new PeerBook()
_options = _options || {}
this._isStarted = false
this.swarm = new Swarm(this.peerInfo, this.peerBook)