MCPcopy
hub / github.com/Mathieu2301/TradingView-API / end

Method end

src/client.js:292–297  ·  view source on GitHub ↗

* Close the websocket connection * @return {Promise } When websocket is closed

()

Source from the content-addressed store, hash-verified

290 * @return {Promise<void>} When websocket is closed
291 */
292 end() {
293 return new Promise((cb) => {
294 if (this.#ws.readyState) this.#ws.close();
295 cb();
296 });
297 }
298};

Callers 15

replayMode.test.tsFile · 0.80
indicators.test.tsFile · 0.80
CustomTimeframe.jsFile · 0.80
SimpleChart.jsFile · 0.80
CustomChartType.jsFile · 0.80
ReplayMode.jsFile · 0.80
FakeReplayMode.jsFile · 0.80

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected