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

Method #handleEvent

src/client.js:71–74  ·  view source on GitHub ↗

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

(ev, ...data)

Source from the content-addressed store, hash-verified

69 * @param {...{}} data Packet data
70 */
71 #handleEvent(ev, ...data) {
72 this.#callbacks[ev].forEach((e) => e(...data));
73 this.#callbacks.event.forEach((e) => e(ev, ...data));
74 }
75
76 #handleError(...msgs) {
77 if (this.#callbacks.error.length === 0) console.error(...msgs);

Callers 3

#handleErrorMethod · 0.95
#parsePacketMethod · 0.95
constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected