socket.io-monitor-cli

2.1.0 • Public • Published

socket.io-monitor-cli

CLI client for socket.io-monitor

This dashboard displays real-time information about your running socket.io server:

  • events log
  • sockets list
  • rooms list

Installation

npm install -g socket.io-monitor-cli

Usage

First, enable socket.io-monitor in your socket.io server.

socket.io-monitor [--port port] [--host addr] [--password pwd]
 
Options:
  --host, -h      Server address                 [string] [default: "localhost"]
  --port, -p      Server port                            [number] [defaut: 9042]
  --password, -a  Password (if not provided but server requires one, you will be
                  interactively asked for one)            [string] [default: ""]
  --help          Display help                                         [boolean]

Development

The terminal rendering is made with react-blessed.

Therefore, using console.log in the source will mix your debug output with the rendered app.

So, prefer console.error and redirect stderr:

socket.io-monitor 2> debug.log
tail -f debug.log

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    4
    • latest

Version History

Package Sidebar

Install

npm i socket.io-monitor-cli

Weekly Downloads

12

Version

2.1.0

License

MIT

Last publish

Collaborators

  • delapouite
  • naholyr