Socket
Socket
Sign inDemoInstall

libp2p-mdns

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libp2p-mdns

Node.js libp2p mDNS discovery implementation for peer discovery


Version published
Weekly downloads
1.4K
increased by0.43%
Maintainers
1
Weekly downloads
 
Created
Source

libp2p-mdns JavaScript implementation

Coverage Status Travis CI Circle CI Dependency Status js-standard-style

Node.js libp2p mDNS discovery implementation

Usage

var MulticastDNS = require('libp2p-mdns')

var mdns = new MulticastDNS(libp2pNodeInstance, options)

mdns.on('peer', (peerInfo) => {
  console.log('Found a peer in the local network', peerInfo.id.toB58String())
})
  • options
    • broadcast - (true/false) announce our presence through mDNS
    • interval - query interval
    • serviceTag - name of the service announced
    • verify - Verifies if we can establish a connection with the peer, before emitting a peer event

Keywords

FAQs

Package last updated on 18 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc