No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

heartbeat

Build Status

Simple heartbeat management.

Install

npm install heartbeat

Usage

var Heartbeat  = require('heartbeat');

var timeout = 5000;
var manager = new Heartbeat.Manager(timeout);
var callback = function() {
  // timeout
}
var id = '123';

// create and start check
manager.check(id, callback).start();

// reset check before timeout fires
manager.check(id).reset();

// stop check
manager.check(id).stop();

License

This module is licensed under the MIT license.