npm

Need private packages and team management tools?Check out npm Orgs. »

seaport-advert

1.2.4 • Public • Published

seaport-advert

NPM

Advertise and find your seaport ip:port combo using mdns.

install

npm install seaport-advert

usage

seaport server

var seaport = require('seaport');
var sa = require('seaport-advert');

var registry = seaport.createServer()
registry.listen(config.registry_port);
sa.advert(config.registry_port);

client

var seaport = require('seaport');
var sa = require('seaport-advert');

sa.find(function(err, about){
	if (err) return console.log('bad things, probably a timeout', err);
  var ports = seaport.connect(about.host, about.port),
  var server = new Hapi.Server(ports.register('ddf-search@1.1.0'));	
})

Keywords

install

npm i seaport-advert

Downloadsweekly downloads

7

version

1.2.4

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability