Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Commit

Permalink
PR: onerror handler
Browse files Browse the repository at this point in the history
It's useful to know that connection is re-established (e.g. re-send
to the server auth information).
  • Loading branch information
Roman Galeev committed Feb 12, 2016
1 parent a56f819 commit 417fba7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions priv/bullet.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@
return;
}

stream.onerror();

transport = null;
clearInterval(heartbeat);

Expand Down Expand Up @@ -314,6 +316,7 @@
this.onmessage = function(){};
this.ondisconnect = function(){};
this.onclose = function(){};
this.onerror = function(){};
this.onheartbeat = function(){};

this.setURL = function(newURL){
Expand Down

0 comments on commit 417fba7

Please sign in to comment.