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

Function stopWsApiConnections

tests/margin-ws-api-live.test.ts:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40});
41
42const stopWsApiConnections = function () {
43 const connections = (binance as any).wsApiConnections;
44 for (const connectionId in connections) {
45 console.log('Terminated WebSocket API connection:', connectionId);
46 (binance as any).terminateWsApi(connectionId);
47 }
48};
49
50describe('Margin WebSocket API – Live Order Test', function () {
51

Callers 2

finishFunction · 0.70

Calls 2

logMethod · 0.80
terminateWsApiMethod · 0.80

Tested by

no test coverage detected