Skip to content

makoto/node-websocket-activity-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-websocket-activity-monitor

Show, don't tell

Prerequisite

  • node.js
  • ruby - just to server static files. Can be anything
  • OS which runs "iostat". Most linux and osx should be okay. Don't know about windows.
  • A browser which supports HTML5 canvas

How to get this

git clone git://github.com/makoto/node-websocket-activity-monitor.git

How to setup on WebSocket supported browsers

node server/websocket-server-node.js/server.js
open client/web-socket-js/iostat-client.html # in Websocke supported browser (eg: Chromium, OSX Chrome)

How to setup on NON WebSocket supported browsers (tested on firefox, and safari)

node server/websocket-server-node.js/server.js
cd client/web-socket-js
ruby server.rb
open http://localhost:10080/iostat-client.html

How to make your cpu 100%

From console, type the following

while true; do echo 'a'; done

Crtl + c will terminate the command.

My bits and bobs

  • README.md
  • client/web-socket-js/iostat-client.html
  • client/web-socket-js/style.css
  • client/web-socket-js/server.rb
  • server/websocket-server-node.js/resources/iostat.js

Others (Thanks !!)

  • jquery - The Write Less, Do More, JavaScript Library
  • underscore - Functional Programming Aid for Javascript. Works well with jQuery.
  • RGraph - A canvas graph library based on the HTML5 canvas tag
  • web-socket-js - HTML5 Web Socket implementation powered by Flash
  • websocket-server-node.js - A Web Socket server for local use written in JavaScript, using node.js

NOTE: I forked websocket-server-node.js and implemented support for websocket-server-node.js

Todo

  • Tidy up file structures
  • Remove ruby (please someone let me know nice ways to server static files from node.js)
  • Write a blog post

License

My bits and bobs are MIT, but be aware of others. Especially RGraph has its own license, and you can not use it for commercial purpose, I think...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published