xapi-node
Advanced tools
Comparing version 2.7.1 to 2.7.2
@@ -64,3 +64,3 @@ "use strict"; | ||
const socketId = `${new Date().getTime()}${this.socketIdIncrement.id}`; | ||
this.connections[socketId] = new SocketConnection_1.SocketConnection(this.url, this.callListener, socketId); | ||
this.connections[socketId] = new SocketConnection_1.SocketConnection(this.url, (listenerId, params) => this.callListener(listenerId, params), socketId); | ||
return this.connections[socketId].connect(timeoutMs) | ||
@@ -67,0 +67,0 @@ .then(() => socketId); |
@@ -46,3 +46,3 @@ "use strict"; | ||
const streamId = `${new Date().getTime()}${this.streamIdIncrement.id}`; | ||
this.connections[streamId] = new StreamConnection_1.StreamConnection(this.url, session, this.callListener, streamId, socketId); | ||
this.connections[streamId] = new StreamConnection_1.StreamConnection(this.url, session, (listenerId, params) => this.callListener(listenerId, params), streamId, socketId); | ||
yield this.connections[streamId].connect(timeoutMs); | ||
@@ -49,0 +49,0 @@ return streamId; |
{ | ||
"name": "xapi-node", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"description": "This project makes it possible to get data from Forex market, execute market or limit order with NodeJS/JS through WebSocket connection", | ||
"exports": { | ||
".": { | ||
"require": "./build/index.cjs", | ||
"import": "./build/index.mjs" | ||
"require": "./build/index.js", | ||
"import": "./build/index.js" | ||
} | ||
@@ -10,0 +10,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
404860