Mido
Mido
Fixed subscribe timer, when page was reloaded. Add unsubscribe.
```javascript async () => { setInterval(() => { const stats = lib.resmon.getStatistics(); context.client.emit('example/resmon', stats); }, config.resmon.interval); return { subscribed: 'resmon' }; }; ``` In this case, if we reload page,...
OS: BigSur 11.2.3 node v15.14.0 ```javascript 19:05:21 W2 info Listen port 8001 in worker 2 19:05:21 W1 info Listen port 8000 in worker 1 19:05:21 W3 info Listen port 8002...
Node version: 14.15.3 OS: MacOS 11.2.1 In Example directory: 1) rm -R node_modules 2) git pull 3) npm install Example version: 1.1.2 ```javascript "devDependencies": { "@types/node": "^14.14.31", "eslint": "^7.21.0", "metatests":...
https://www.okx.com/docs-v5/en/#overview new wss path and new arguments ```javascript // format { "op": "subscribe", "args": [""] } // example { "op": "subscribe", "args": [ { "channel": "trades", "instId": "BTC-USDT" } ]...
I propose add l2depthStep: ```javascript // ccxws/src/exchanges/huobi-client.js class HuobiClient extends HuobiBase { constructor({ wssPath = "wss://api.huobi.pro/ws", watcherMs, l2depthStep } = {}) { //
(node:2725960) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with...