@aurox/persistent-websocket-connection
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -74,10 +74,9 @@ "use strict"; | ||
this.closeConnection = () => { | ||
if (this.connection && (this.isConnected || this.isConnecting)) { | ||
try { | ||
this.connection.close(); | ||
} | ||
catch (_a) { | ||
// Ignore errors here, failure to close is not very problematic | ||
} | ||
var _a; | ||
try { | ||
(_a = this.connection) === null || _a === void 0 ? void 0 : _a.close(); | ||
} | ||
catch (_b) { | ||
// Ignore errors here, failure to close is not very problematic | ||
} | ||
}; | ||
@@ -84,0 +83,0 @@ this.handleConnectionLost = (reason, error) => { |
{ | ||
"name": "@aurox/persistent-websocket-connection", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Aurox Persistent Websocket Connection", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
18847
399