Skip to content

Commit

Permalink
trying without heartbeat.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeken committed Nov 24, 2023
1 parent 5b6981b commit 0e4c82b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class YarrboardClient
this.messageQueue = [];

//our connection watcher
setTimeout(this._sendHeartbeat.bind(this), this.heartbeat_rate);
//setTimeout(this._sendHeartbeat.bind(this), this.heartbeat_rate);

//handle login
if (this.require_login)
Expand Down Expand Up @@ -402,10 +402,10 @@ class YarrboardClient
my_timeout = Math.min(my_timeout, 60000);

//tee it up.
this.log(`Reconnecting in ${my_timeout}ms. Try #${this.socket_retries}`);
this.log(`Reconnecting, try #${this.socket_retries}. Next try in ${my_timeout}ms.`);
setTimeout(this._retryConnection.bind(this), my_timeout);
}
}
YarrboardClient.version = packageJSON.version;

module.exports = YarrboardClient;
module.exports = YarrboardClient;

0 comments on commit 0e4c82b

Please sign in to comment.