MCPcopy Index your code
hub / github.com/Mathieu2301/TradingView-API / #handleEvent

Method #handleEvent

src/chart/study.js:215–218  ·  view source on GitHub ↗

* @param {ChartEvent} ev Client event * @param {...{}} data Packet data

(ev, ...data)

Source from the content-addressed store, hash-verified

213 * @param {...{}} data Packet data
214 */
215 #handleEvent(ev, ...data) {
216 this.#callbacks[ev].forEach((e) => e(...data));
217 this.#callbacks.event.forEach((e) => e(ev, ...data));
218 }
219
220 #handleError(...msgs) {
221 if (this.#callbacks.error.length === 0) console.error(...msgs);

Callers 2

#handleErrorMethod · 0.95
constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected