Html5/Java API for Websocket  sample