1.2.0 • Published 5 years ago

nodejs-sockets-monitor v1.2.0

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
5 years ago

nodejs-sockets-monitor

Install

# NOTE: Comes with typescript types
npm install nodejs-sockets-monitor
# or
yarn add nodejs-sockets-monitor

Allows subscription to socket stats. Example output and usage:

import { subscribeToSocketStats } from 'nodejs-sockets-monitor';

const interval = 1000; // Show updated stats every sec.
subscribeToSocketStats(stats => {
  console.clear();
  console.table(stats);
}, interval);
(index)activecloseconnectdatadrainenderrorlookupreadytimeout
localhost:59841343534330035350

Credits

This codebase is essentially a refactoring of https://github.com/vigneshshanmugam/monitor-sockets

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago