MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / terminate

Function terminate

deprecated/node-binance-api.js:812–818  ·  view source on GitHub ↗
(endpoint, reconnect = false)

Source from the content-addressed store, hash-verified

810 * @return {undefined}
811 */
812 const terminate = function (endpoint, reconnect = false) {
813 let ws = Binance.subscriptions[endpoint];
814 if (!ws) return;
815 ws.removeAllListeners('message');
816 ws.reconnect = reconnect;
817 ws.terminate();
818 }
819
820
821 /**

Callers 2

apiFunction · 0.85
handleDepthStreamDataFunction · 0.85

Calls 1

terminateMethod · 0.65

Tested by

no test coverage detected