bitmex-orderbook
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "bitmex-orderbook", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "BitMEX WebSocket-driven Orderbook", | ||
@@ -5,0 +5,0 @@ "main": "src/OrderBook.js", |
@@ -22,6 +22,8 @@ const crypto = require("crypto"); | ||
return new Promise((resolve, reject) => { | ||
if (!this.socket) { | ||
this.socket = new WebSocket(this.endpoint); | ||
if (this.socket) { | ||
return resolve(true); | ||
} | ||
this.socket = new WebSocket(this.endpoint); | ||
let heartbeatInterval; | ||
@@ -28,0 +30,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
77341
290