xapi-node
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -204,9 +204,9 @@ "use strict"; | ||
if (socketId) { | ||
for (const i of Object.entries(this.Socket.connections)) { | ||
if (i[1].socketId === socketId) { | ||
promiseList.push(i[1].close()); | ||
if (i[1].streamId) { | ||
for (const k of Object.entries(this.Stream.connections)) { | ||
if (k[1].streamId === i[1].streamId) { | ||
promiseList.push(k[1].close()); | ||
for (const i of Object.values(this.Socket.connections)) { | ||
if (i.socketId === socketId) { | ||
promiseList.push(i.close()); | ||
if (i.streamId) { | ||
for (const k of Object.values(this.Stream.connections)) { | ||
if (k.streamId === i.streamId) { | ||
promiseList.push(k.close()); | ||
break; | ||
@@ -213,0 +213,0 @@ } |
{ | ||
"name": "xapi-node", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "This project makes it possible to get data from Forex market, execute market or limit order with NodeJS/JS through WebSocket connection", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
264972