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

Function stopWsApiConnections

tests/binance-ws-api-userdata.test.ts:19–25  ·  view source on GitHub ↗
(log = false)

Source from the content-addressed store, hash-verified

17});
18
19const stopWsApiConnections = function (log = false) {
20 const connections = (binance as any).wsApiConnections;
21 for (let connectionId in connections) {
22 if (log) console.log('Terminated WebSocket API connection: ' + connectionId);
23 (binance as any).terminateWsApi(connectionId);
24 }
25}
26
27describe('WebSocket API Infrastructure', function () {
28

Callers 2

finishFunction · 0.70

Calls 2

logMethod · 0.80
terminateWsApiMethod · 0.80

Tested by

no test coverage detected