bfx-api-node-core
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -67,3 +67,5 @@ 'use strict' | ||
} | ||
delete resubChannels[chanId] | ||
}) | ||
} |
@@ -8,3 +8,3 @@ 'use strict' | ||
module.exports = (state = {}) => { | ||
const { url, agent, ws: oldWS, channels, autoResubscribe } = state | ||
const { url, agent, ws: oldWS, channels, autoResubscribe, resubChannels: oldResubChannels = {} } = state | ||
@@ -29,4 +29,4 @@ if (oldWS && oldWS.readyState === WebSocket.OPEN) { | ||
ws, | ||
...(autoResubscribe && { resubChannels: channels }) | ||
...(autoResubscribe && { resubChannels: { ...oldResubChannels, ...channels } }) | ||
} | ||
} |
{ | ||
"name": "bfx-api-node-core", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Core Bitfinex Node API", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
93400
2875