More examples from the book "Getting Started with HTML5 WebSocket
Programming"
http://www.packtpub.com/getting-started-with-html5-websocket-programming/book