All Projects → libp2p → Js Libp2p Ping

libp2p / Js Libp2p Ping

Licence: mit
[DEPRECATED]: now part of the https://github.com/libp2p/js-libp2p repo

Programming Languages

javascript
184084 projects - #8 most used programming language

⛔️ DEPRECATED: libp2p-ping is now included in js-libp2p

libp2p-ping JavaScript Implementation

Discourse posts Coverage Status Dependency Status Travis CI Circle CI

IPFS ping protocol JavaScript implementation

Lead Maintainer

Jacob Heun

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].