Vasco Santos 8506414ea1
chore: config types and dependencies update (#904)
BREAKING CHANGES:

top level types were updated, multiaddr@9.0.0 is used, dialer and keychain internal property names changed and connectionManager minPeers is not supported anymore
2021-04-15 09:40:02 +02:00
..
2020-01-24 14:40:40 +01:00

libp2p-ping JavaScript Implementation

IPFS ping protocol JavaScript implementation

Note: git history prior to merging into js-libp2p can be found in the original repository, https://github.com/libp2p/js-libp2p-ping.

Usage

var Ping = require('libp2p/src/ping')

Ping.mount(libp2p) // Enable this peer to echo Ping requests

const latency = await Ping(libp2p, peerDst)

Ping.unmount(libp2p)