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