websocket.java from phonegap.com