LearnBoost/socket.io — Issue #758: duplicate events after disconnect / connect
Author: solisoft
Created: 2012-02-21 13:54:28+00:00
State: open

Here my code :

socket = io.connect(host);
socket.on('connect', function () {
socket.on('msg', function(data) {
// do something
})
});

If I stop & relaunch my server script (using forever) all msg events will be fired twice ...
If I stop & relaunch again I will see 3x the same event
and so on ... 4x, 5x, etc ...

I'm using socket.io 0.8.7