websocket13
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -63,3 +63,3 @@ var WS13 = require('./index.js'); | ||
} | ||
}, 5000); | ||
}, 5000).unref(); | ||
}; | ||
@@ -130,2 +130,3 @@ | ||
this._closeExtensions(); | ||
this._cleanupTimers(); | ||
}); | ||
@@ -137,2 +138,3 @@ | ||
this._closeExtensions(); | ||
this._cleanupTimers(); | ||
this.emit('error', err); | ||
@@ -325,2 +327,3 @@ }); | ||
if (state == WS13.State.Closing || state == WS13.State.ClosingError) { | ||
this._cleanupTimers(); | ||
this._closeExtensions(() => { | ||
@@ -341,2 +344,3 @@ this._socket.end(); | ||
this._sendControl(WS13.FrameType.Control.Close, payload.flip().toBuffer()); | ||
this._cleanupTimers(); | ||
this._closeExtensions(() => { | ||
@@ -642,2 +646,3 @@ this._socket.end(); | ||
this._closeExtensions(); | ||
this._cleanupTimers(); | ||
@@ -661,2 +666,7 @@ if (this._socket) { | ||
WebSocketBase.prototype._cleanupTimers = function() { | ||
clearTimeout(this._pingTimeout); | ||
clearTimeout(this._pingTimer); | ||
}; | ||
WebSocketBase.prototype._closeExtensions = function(callback) { | ||
@@ -663,0 +673,0 @@ callback = callback || function() { }; |
{ | ||
"name": "websocket13", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Simple WebSocket protocol 13 client with no native or heavy dependencies", | ||
@@ -5,0 +5,0 @@ "author": "Alexander Corn <mckay@doctormckay.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97445
24
1291