libp2p-ping

libp2p Ping protocol implementation

libp2p-ping is now part of libp2p as of libp2p@0.26.1. This module should no longer be used standalone.
Last updated 7 years ago by jacobheun .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install libp2p-ping 
SYNC missed versions from official npm registry.

libp2p-ping JavaScript Implementation

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()

Current Tags

  • 0.8.5                                ...           latest (7 years ago)

16 Versions

  • 0.8.5 [deprecated]           ...           7 years ago
  • 0.8.4 [deprecated]           ...           7 years ago
  • 0.8.3 [deprecated]           ...           7 years ago
  • 0.8.2 [deprecated]           ...           7 years ago
  • 0.8.0 [deprecated]           ...           8 years ago
  • 0.7.0 [deprecated]           ...           8 years ago
  • 0.6.1 [deprecated]           ...           8 years ago
  • 0.6.0 [deprecated]           ...           9 years ago
  • 0.5.0 [deprecated]           ...           9 years ago
  • 0.4.0 [deprecated]           ...           9 years ago
  • 0.3.2 [deprecated]           ...           9 years ago
  • 0.3.1 [deprecated]           ...           9 years ago
  • 0.3.0 [deprecated]           ...           9 years ago
  • 0.2.0 [deprecated]           ...           10 years ago
  • 0.1.3 [deprecated]           ...           10 years ago
  • 0.1.1 [deprecated]           ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (12)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |