libp2p / Js Libp2p Ping
Licence: mit
[DEPRECATED]: now part of the https://github.com/libp2p/js-libp2p repo
Stars: ✭ 10
Programming Languages
javascript
184084 projects - #8 most used programming language
js-libp2p
⛔️ DEPRECATED: libp2p-ping is now included inlibp2p-ping JavaScript Implementation
IPFS ping protocol JavaScript implementation
Lead Maintainer
Usage
var Ping = require('libp2p-ping')
Ping.mount(swarm) // Enable this peer to echo Ping requests
var p = new Ping(swarm, peerDst) // Ping peerDst, peerDst must be a peer-info object
p.on('ping', function (time) {
console.log(time + 'ms')
p.stop() // stop sending pings
})
p.start()
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].