eyeos-service-ready-notify

notifies when a service is ready

Usage no npm install needed!

<script type="module">
  import eyeosServiceReadyNotify from 'https://cdn.skypack.dev/eyeos-service-ready-notify';
</script>

README

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