- 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
git clone git://github.com/makoto/node-websocket-activity-monitor.git
node server/websocket-server-node.js/server.js
open client/web-socket-js/iostat-client.html # in Websocke supported browser (eg: Chromium, OSX Chrome)
node server/websocket-server-node.js/server.js
cd client/web-socket-js
ruby server.rb
open http://localhost:10080/iostat-client.html
From console, type the following
while true; do echo 'a'; done
Crtl + c will terminate the command.
- 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
- 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
- Tidy up file structures
- Remove ruby (please someone let me know nice ways to server static files from node.js)
- Write a blog post
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...