Skip to content

Commit

Permalink
Merge pull request Flotype#88 from AD7six/feature/socket-events
Browse files Browse the repository at this point in the history
re-broadcast socket io events. thanks AD7six
  • Loading branch information
ericz committed May 13, 2011
2 parents 764dd82 + 95e485c commit f94a958
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/now.js
Expand Up @@ -346,6 +346,16 @@ var nowLib = {
nowCore.handleDisconnection(client);
nowCore.emit('disconnect');
});
// Forward planning for socket io 0.7
client.on('error', function(){
nowCore.emit('error');
});
client.on('retry', function(){
nowCore.emit('retry');
});
client.on('reconnect', function(){
nowCore.emit('reconnect');
});
}

};
Expand Down Expand Up @@ -402,4 +412,4 @@ var now = {
}
document.getElementsByTagName("head")[0].appendChild(fileref);
}
}());
}());

0 comments on commit f94a958

Please sign in to comment.