$ npm 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()
© 2010 - cnpmjs.org x YWFE | Home | YWFE