You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the simpliest heartbeat algorithm you'll find for nodejs.
This library consists in two classes: one that waits for connections and other that connects and says it is alive. It'ss a simple tool to inspect if my remote servers are up or down ;)
The hb_client.js and hb_server.js inside src/ should suffice for you to understand how to run a heartbeat system between remote servers...
To run the tests you will need nodeunit (npm nodeunit and you are done!)