0.0.31 • Published 8 years ago

eyeos-service-ready-notify v0.0.31

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
8 years ago

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