Low level KeepAlive-like structure exposed as an event emitter
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

ping-pong Build Status Code Climate Dependency Status

Low level and abstract KeepAlive-like structure.

Installation

npm install ping-pong

API

See source code for more details and parameter explaination.

PingPong

a, b, c, d, e Int: a, b, (c, d -> *), (e, d -> *) -> timer

pong

a timer: a -> a

clear

a timer: a -> a

Debug Mode

Uses debug, e.g.:

DEBUG=ping-pong node foo.js

ping-pong start {"intervalMs":10,"retryLimit":0} +1ms
ping-pong > ping +0ms
ping-pong < pong +1ms
ping-pong > ping +10ms
ping-pong < pong +0ms
ping-pong > ping +10ms
ping-pong drop +11ms
ping-pong retry limit reached +0ms
ping-pong stop +0ms