bybit-api
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -350,4 +350,6 @@ "use strict"; | ||
connectToWsUrl(url, wsKey) { | ||
var _a; | ||
this.logger.silly(`Opening WS connection to URL: ${url}`, Object.assign(Object.assign({}, loggerCategory), { wsKey })); | ||
const ws = new isomorphic_ws_1.default(url); | ||
const agent = (_a = this.options.requestOptions) === null || _a === void 0 ? void 0 : _a.agent; | ||
const ws = new isomorphic_ws_1.default(url, undefined, agent ? { agent } : undefined); | ||
ws.onopen = event => this.onWsOpen(event, wsKey); | ||
@@ -354,0 +356,0 @@ ws.onmessage = event => this.onWsMessage(event, wsKey); |
{ | ||
"name": "bybit-api", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
167727
2948