Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

mdns-swarm

5.1.0 • Public • Published

mdns-swarm

create a swarm of connected webrtc peers using multicast DNS!

Example

Try this on two computers on the same network; for debug information you can run with DEBUG=mdns-swarm*.

var Swarm = require('./mdns-swarm.js');
var wrtc = require('wrtc');
 
var swarm = new Swarm('simple-swarm', {wrtc: wrtc});
 
swarm.on('peer', function (stream) {
  process.stdin.pipe(stream).pipe(process.stdout);
});

Keywords

install

npm i mdns-swarm

Downloadsweekly downloads

9

version

5.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability