Open365 / eyeos-service-ready-notify

Home Page:https://open365.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Service Ready Notifier Library

Overview

This library can be used to notify(to consul for example) when a service is ready.

How to use it

Websockify for example:

var Notifier = require('eyeos-service-ready-notify');

this.notifier = new Notifier();
this.notifier.registerService('websockify123','websockify', '192.168.1.2', '8010', function(res){
	if(res){
		console.log('success');
	} else {
		console.log('error: ', res);
	}
});

Quick help

  • Install modules
	$ npm install
  • Check tests
    $ grunt test
    $ npm test

About

https://open365.io

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 100.0%