@aurox/persistent-websocket-connection
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -337,3 +337,3 @@ import WebSocket from 'isomorphic-ws'; | ||
this.logger.debug(`Attempting to connect to ${this.url}.`); | ||
this.connection = new WebSocket(this.url, { agent: this.agent }); | ||
this.connection = this.agent ? new WebSocket(this.url, { agent: this.agent }) : new WebSocket(this.url); | ||
this.onConnecting(this.connection); | ||
@@ -340,0 +340,0 @@ this.emit('connecting'); |
{ | ||
"name": "@aurox/persistent-websocket-connection", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Aurox Persistent Websocket Connection", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -458,3 +458,3 @@ import WebSocket, { MessageEvent, ErrorEvent } from 'isomorphic-ws'; | ||
this.connection = new WebSocket(this.url, { agent: this.agent }); | ||
this.connection = this.agent ? new WebSocket(this.url, { agent: this.agent }) : new WebSocket(this.url); | ||
@@ -461,0 +461,0 @@ this.onConnecting(this.connection); |
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
63016