uri-monitor

Monitor a URI's connectivity

npm install uri-monitor
12 downloads in the last week
24 downloads in the last month

uri-monitor Build Status Dependency Status NPM version

Monitor a URI's connectivity

Installation

Install with component(1):

$ component install jasonkuhrt/uri-monitor

Install with npm(1)

$ npm install uri-monitor

API

Constructor

URI_Monitor :: String uri, Int interval_ms -> uri_monitor

Instance Methods

start
start :: -> undefined
stop
stop :: -> undefined

Instance Events

drop
'drop', Error
pong
'pong', Response
connection
'connecton'
disconnection
'disconnection'

Notes

Following the first ping() a connection event is emitted if said ping() got pong, or a disconnection event is emitted if said ping() got drop.

Enable debug mode with label uri_monitor using debug

License

BSD-2-Clause

npm loves you