hall-monitor

This npm package allows you to configure and setup callbacks with your client applications given activity that is defined.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
hall-monitor
0.0.16 years ago6 years agoMinified + gzip package size for hall-monitor in KB

Readme

Install

YARN
yarn add hall-monitor
NPM
npm install --save hall-monitor

Example Usage

import HallMonitor from 'hall-monitor'


const clearMonitor = HallMonitor.register({
  interval: 10000,
  eventType: 'click',
  callback: () => { console.log('do a thing') },
});
Description of a register object
| option | purpose | example | | ------------- |:-------------:| -----:| | interval | How often should a given callback trigger | 10000 | | eventType | Used to determine activity (Optional) | 'click' | | callback | what will execute on the interval | Any(Function) |