Trottola
A small library providing throttling methods
Installation
npm install trottola --save
Usage
var trottola = ; var redis = ; var client = redis; // Used to store client information var clientPub = redis; // Used internally to set the throttling event timer var clientSub = redis; // Used internally to be notified of the throttling event throttler = ; thisthrottler
Tests
npm test
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 0.1.3 Fix: adapting the code to an API change in dtimer
- 0.1.2 Updated dtimer to fix an issue with Redis connections
- 0.1.1 README.md fix
- 0.1.0 Initial release