Skip to content
🐝 create a swarm of connected WebRTC peers using multicast DNS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
README.md
debug-routes.js
debug.html
dns-sd.js
mdns-swarm.js
package.json
signal-server.js
simple-swarm.js

README.md

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);
});
You can’t perform that action at this time.