Comparing version 2.5.2 to 2.5.3
@@ -19,2 +19,6 @@ /// <reference types="node" /> | ||
requestOptions?: AxiosRequestConfig; | ||
wsOptions?: { | ||
protocols?: string[]; | ||
agent?: any; | ||
}; | ||
wsUrl?: string; | ||
@@ -21,0 +25,0 @@ } |
@@ -30,2 +30,13 @@ "use strict"; | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -114,3 +125,4 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
this.logger.silly(`connectToWsUrl(): Opening WS connection to URL: ${url}`, Object.assign(Object.assign({}, loggerCategory), { wsRefKey })); | ||
const ws = new isomorphic_ws_1.default(url); | ||
const _a = this.options.wsOptions || {}, { protocols = [] } = _a, wsOptions = __rest(_a, ["protocols"]); | ||
const ws = new isomorphic_ws_1.default(url, protocols, wsOptions); | ||
this.wsUrlKeyMap[url] = wsRefKey; | ||
@@ -117,0 +129,0 @@ if (typeof ws.on === 'function') { |
{ | ||
"name": "binance", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"description": "Complete & robust node.js SDK for Binance's REST APIs and WebSockets, with TypeScript & end-to-end tests.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
444994
8132