We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7294692 commit a5f2d44Copy full SHA for a5f2d44
lib/transport.js
@@ -320,15 +320,17 @@ AGTransport.prototype._onError = function (error) {
320
};
321
322
AGTransport.prototype.isStale = function () {
323
+ if (this.pingTimeoutDisabled) return false;
324
return Date.now() - this.lastPingTimestamp >= this.pingTimeout;
325
326
327
AGTransport.prototype._resetPingTimeout = function () {
328
+ this.lastPingTimestamp = Date.now();
329
+
330
if (this.pingTimeoutDisabled) {
331
return;
332
}
333
- this.lastPingTimestamp = Date.now();
334
clearTimeout(this._pingTimeoutTicker);
335
this._pingTimeoutTicker = setTimeout(() => {
336
this._destroy(4000);
0 commit comments