instead of this
socket = io.connect(url)
socket.on('connect', function(){
socket.on('message', function (msg) {
});
});
now i do
socket = io.connect(url)
socket.on('connect', function(){
});
socket.on('message', function (msg) {
});
it appears work right..
hope this helps
socket = io.connect(url);
socket.on('connect', function () {
socket.on('message', function (msg) {
});
});
i did this,
socket = io.connect(url);
socket.on('connect', function () {
});
socket.on('message', function (msg) {
});
this seems to work all right and multiple events don't seem to fire.
i think it is because previous registered listener doesn't gets
unregistered after a successful re-connection attempt