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

Function stopSockets

tests/binance-ws-spot.test.ts:29–35  ·  view source on GitHub ↗
( log = false )

Source from the content-addressed store, hash-verified

27});
28
29const stopSockets = function ( log = false ) {
30 let endpoints = binance.websockets.subscriptions();
31 for ( let endpoint in endpoints ) {
32 if ( log ) console.log( 'Terminated ws endpoint: ' + endpoint );
33 binance.websockets.terminate( endpoint );
34 }
35}
36
37describe( 'Websockets candlesticks', function () {
38 let candlesticks;

Callers 1

Calls 3

logMethod · 0.80
subscriptionsMethod · 0.65
terminateMethod · 0.65

Tested by

no test coverage detected