When I connect to the node server on IE 8 under WinXP, the connect
event is fired many times. When I do the same on Chrome under WinXP or IE 11 under Windows 7 the connect
fires only once, as expected.
The client code:
if (that.debug && window.console) console.log('connecting to '+server_addr);
var socket = that.socket = io.connect(server_addr,{
'reconnect' : false,
'connect timeout' : 1000,
'max reconnection attempts': 3
});
socket.on('connect', function(){
if (that.debug && window.console) console.log('Socket.on event: connect');
cb.call(that,socket);
});
The output on IE 8 :
LOG: connecting to my_server.com
LOG: Socket.on event: connect
LOG: Socket.on event: connect
LOG: Socket.on event: connect
LOG: Socket.on event: connect
LOG: Socket.on event: connect
LOG: Socket.on event: connect
LOG: Socket.on event: connect
LOG: Socket.on event: connect
Anyone experienced this issue? any idea how to solve / debug this?