GithubHelp home page GithubHelp logo

vigneshshanmugam / monitor-sockets Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 8 KB

Monitor & debug socket connections in Node.js seamlessly.

License: MIT License

JavaScript 100.00%
sockets connections monitor agent debug nodejs

monitor-sockets's Introduction

monitor-sockets

Monitor socket connections in Node.js

Installation

yarn add monitor-sockets

Use

// In your application index.js file before starting the server
const monitor = require("monitor-sockets");

monitor.start({ interval: 2000 });

// Renders the table on the terminal
┌────────────────┬─────────┬────────┬──────────┬─────────┬───────────┬───────┐
 Socket Name     Created  In Use  Requests  Timeout  Destroyed  Error 
├────────────────┼─────────┼────────┼──────────┼─────────┼───────────┼───────┤localhost:8082  20       18      200       0        0          2     
├────────────────┼─────────┼────────┼──────────┼─────────┼───────────┼───────┤localhost:8085  20       20      500       0        0          0     
├────────────────┼─────────┼────────┼──────────┼─────────┼───────────┼───────┤localhost:8086  20       0       0         0        0          20    
└────────────────┴─────────┴────────┴──────────┴─────────┴───────────┴───────┘

API

start(options)

Starts monitoring the socket connections for both HTTP and HTTPS.

  • options {Object}

    • interval - Refresh interval to update the data on the Terminal

LICENSE

MIT

monitor-sockets's People

Contributors

vigneshshanmugam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.