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

Method #handleEvent

src/chart/session.js:173–176  ·  view source on GitHub ↗

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

(ev, ...data)

Source from the content-addressed store, hash-verified

171 * @param {...{}} data Packet data
172 */
173 #handleEvent(ev, ...data) {
174 this.#callbacks[ev].forEach((e) => e(...data));
175 this.#callbacks.event.forEach((e) => e(ev, ...data));
176 }
177
178 #handleError(...msgs) {
179 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