ws = new MozWebSocket("ws://localhost:8080/html5WebSocket/mywebsocket.do");
After trying the code snippet above to initiate a websocket request, I noticed that the connection was quickly closed and the onclose method was triggered.
ws.onclose = function(evt) {
alert("close");
};
In examining the network tab in Firebug, it displayed the request URL as http://localhost:8080/html5WebSocket/mywebsocket.do instead of ws://localhost:8080/html5WebSocket/mywebsocket.do as expected. What did I do incorrectly?