eyeos-service-ready-notify

0.0.31 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i eyeos-service-ready-notify

Weekly Downloads

3

Version

0.0.31

License

AGPL-3.0

Last publish

Collaborators

  • eyeos