diff --git a/lib/now.js b/lib/now.js index c0b9ac4..9c12ee4 100644 --- a/lib/now.js +++ b/lib/now.js @@ -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'); + }); } }; @@ -402,4 +412,4 @@ var now = { } document.getElementsByTagName("head")[0].appendChild(fileref); } -}()); \ No newline at end of file +}());