Skip to content

byteclubfr/socket.io-monitor-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CLI client for socket.io-monitor

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published