0.0.1 • Published 5 years ago

eth-libp2p-bootstrap v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

js-libp2p-bootstrap

npm.io npm.io npm.io Discourse posts npm.io npm.io js-standard-style npm.io npm.io

JavaScript libp2p Implementation of the railing process of a Node through a bootstrap peer list

Lead Maintainer

Vasco Santos.

Usage

const bootstrap = require('libp2p-bootstrap')

const options = {
  list: <List of Multiaddrs>
  interval: 5000 // ms, default is 10s
}

const b = new bootstrap(options)

b.on('peer', function (peerInfo) {
  // found a new peer
})

b.start()