Package Exports
- libp2p-bootstrap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (libp2p-bootstrap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
js-libp2p-bootstrap
JavaScript libp2p Implementation of the railing process of a Node through a bootstrap peer list
Lead Maintainer
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()