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