Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.