Java EE HTML5 WebSocket demo. See Also: http://www.oschina.net/translate/java-ee-html5-websocket-example