Permalink
Browse files

fixed reconnection

  • Loading branch information...
1 parent b085f53 commit c410cd261e38345ae561a624820d05ab166a40a9 @impronunciable committed Dec 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/tuiter.js
View
@@ -30,7 +30,7 @@ function Tuiter(oauth_params){
* Version
*/
-Tuiter.version = '0.2.3';
+Tuiter.version = '0.2.4';
/*
* OAuth
@@ -181,7 +181,7 @@ NJStream.prototype.reconnectTCP = function() {
* Handle HTTP error
*/
-Tuiter.prototype.reconnectHTTP = function() {
+NJStream.prototype.reconnectHTTP = function() {
var self = this;
debug('http error encountered. Will reconnect after ' + self.parent.http_timeout + ' miliseconds.');
setTimeout(function(){ self.emit('reconnect'); }, self.parent.http_timeout);
@@ -192,7 +192,7 @@ Tuiter.prototype.reconnectHTTP = function() {
* Handle rate limit
*/
-Tuiter.prototype.reconnectRateLimit = function() {
+NJStream.prototype.reconnectRateLimit = function() {
var self = this;
debug('rate limit error encountered. Will reconnect after ' + self.parent.rate_timeout + ' miliseconds.');
setTimeout(function(){ self.emit('reconnect'); }, self.parent.rate_timeout);

0 comments on commit c410cd2

Please sign in to comment.