aggregator-cexio
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -125,2 +125,3 @@ const WebSocket = require('ws') | ||
} else { | ||
if (message.e === 'pong') return | ||
this.options.log('Ignoring ws message because of unknown message format', message) | ||
@@ -200,2 +201,10 @@ } | ||
async ping () { | ||
if (!this.socket || this.socket.readyState !== WebSocket.OPEN) { | ||
throw new Error('Not connected') | ||
} | ||
this.socket.send('{"e": "ping"}') | ||
} | ||
async callPrivate (method, params) { | ||
@@ -202,0 +211,0 @@ if (!this.socket || this.socket.readyState !== WebSocket.OPEN) { |
{ | ||
"name": "aggregator-cexio", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "nodejs client for aggregator.cex.io", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -129,3 +129,3 @@ # CEX.IO Aggregator | ||
### Subscribe to updates | ||
The WebsocketClient allows you to receive updates. At the now available two types of updates `account_update` and `executionReport`. You can get more detail about them in [documentation](https://docs-aggregator.cex.io/#websocket-account-events). | ||
The WebsocketClient allows you to receive updates. At the now available two types of updates `account_update` and `executionReport`. You can get more details about them in [documentation](https://docs-aggregator.cex.io/#websocket-account-events). | ||
@@ -132,0 +132,0 @@ ```js |
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
16146
311