Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

ping-pong

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ping-pong

Low level and abstract KeepAlive-like structure.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

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

Keywords

keep-alive

FAQs

Package last updated on 28 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts