bitmex-orderbook
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "bitmex-orderbook", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "BitMEX WebSocket-driven Orderbook", | ||
@@ -5,0 +5,0 @@ "main": "src/OrderBook.js", |
@@ -23,6 +23,8 @@ const crypto = require("crypto"); | ||
return new Promise((resolve, reject) => { | ||
if (!this.socket) { | ||
this.socket = new WebSocket(this.endpoint, this.socketOptions); | ||
if (this.socket) { | ||
return resolve(true); | ||
} | ||
this.socket = new WebSocket(this.endpoint, this.socketOptions); | ||
let heartbeatInterval; | ||
@@ -29,0 +31,0 @@ |
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
77416
291