Hi
I have written a very simple chat application that delegates messages
to/from RabbitMQ. The client is very thin and only connects to a
WebSocketHandler and to connect to a chat channel sends a single JSON
request. The problem I am encountering is that this all works fine in
Chrome using WebSocket but when I try to do the same in Firefox using
MozWebSocket it closes the connection immediately:
var updater = {
// the Chrome connection
//updater.socket = new WebSocket("ws://
10.20.103.229:8888/
chatsocket");
// the FireFox connection
updater.socket = new MozWebSocket("ws://
10.20.103.229:8888/
chatsocket");
updater.socket.onmessage = function(event) {
console.log(event.data);
if (event.data == 'Queue Declared') {
this.send(JSON.stringify(
{"exc": "EX_midgardur",
"key": "foo"}
));
}
};
};
any help would be much appreciated.
codehugger