A Timer used to Detect and Recover from Malfunctions.
Picture Credit: Using Watchdog Timer
$ npm install watchdog
dog.on'reset',console.log'reset-ed'dog.on'feed',console.log'feed-ed'dog.feedfood// Output: feed-edsetTimeout, TIMEOUT + 1// Output: reset-ed.// Output: dog sleep-ed. Demo over.
Thanks to Damon Oehlman (https://github.com/DamonOehlman) who owned the
watchdog name of NPM module. He is so kind and nice that passed this name over to me after my request.
Huan LI <firstname.lastname@example.org> (http://linkedin.com/in/zixia)