Permalink
Browse files

disconnect event

  • Loading branch information...
1 parent a9f5891 commit 8471100eedffe9cd508294e127eb4b75f5d23bc9 @snakajima committed Dec 4, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/comet.io.client.js
  2. +1 −1 package.json
View
@@ -182,7 +182,8 @@ var comet = (function() {
if (textStatus == 'timeout') {
self._wait();
} else {
- console.error(textStatus, obj.responseText);
+ //console.error(textStatus, obj.responseText);
+ self._emit('disconnect', { textStatus:textStatus, error:error });
}
},
dataType: "json"
View
@@ -1,6 +1,6 @@
{
"name": "comet.io",
- "version": "0.0.4",
+ "version": "0.0.5",
"description": "light-weight comet server & client",
"main": "./lib/comet.io.js",
"scripts": {

0 comments on commit 8471100

Please sign in to comment.