* @param {ChartEvent} ev Client event * @param {...{}} data Packet data
(ev, ...data)
| 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); |
no outgoing calls
no test coverage detected