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

Function finish

tests/margin-ws-api-live.test.ts:65–71  ·  view source on GitHub ↗
(err?: Error)

Source from the content-addressed store, hash-verified

63 let finished = false;
64
65 const finish = (err?: Error) => {
66 if (finished) return;
67 finished = true;
68 stopWsApiConnections();
69 if (err) return done(err);
70 done();
71 };
72
73 binance.websockets.userMarginData(
74 // all_updates_callback

Callers 1

Calls 1

stopWsApiConnectionsFunction · 0.70

Tested by

no test coverage detected