(...args)
| 201 | } |
| 202 | |
| 203 | emit(...args) { |
| 204 | const packet = { |
| 205 | type: SIOPacketType.EVENT, |
| 206 | data: args, |
| 207 | }; |
| 208 | |
| 209 | if (this.connected) { |
| 210 | this.#sendPacket(packet); |
| 211 | } else { |
| 212 | this.#sendBuffer.push(packet); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | disconnect() { |
| 217 | this.#shouldReconnect = false; |
nothing calls this directly
no test coverage detected