Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list
$ cnpm install libp2p-railing
JavaScript libp2p Implementation of the railing process of a Node through a bootstrap peer list
const Railing = require('libp2p-railing')
const options = {
list: <List of Multiaddrs>
interval: 5000 // ms, default is 10s
}
const b = new Railing(options)
b.on('peer', function (peerInfo) {
// found a new peer
})
b.start()
Copyright 2013 - present © cnpmjs.org | Home |