ws = new MozWebSocket("ws://localhost:8080/html5WebSocket/mywebsocket.do");
I used the code above to execute websocket request but found that the connection was closed immediately with the method onclose called.
ws.onclose = function(evt) {
alert("close");
};
The net tab of firebug shows the request url from browser to tomcat is http://localhost:8080/html5WebSocket/mywebsocket.do. I expected the url to be ws://localhost:8080/html5WebSocket/mywebsocket.do.
What have I done wrong?