(packet)
| 145 | } |
| 146 | |
| 147 | #onConnect(packet) { |
| 148 | this.id = packet.data.sid; |
| 149 | this.connected = true; |
| 150 | |
| 151 | this.#sendBuffer.forEach((packet) => this.#sendPacket(packet)); |
| 152 | this.#sendBuffer.slice(0); |
| 153 | |
| 154 | super.emit("connect"); |
| 155 | } |
| 156 | |
| 157 | #onClose(reason) { |
| 158 | if (this.#ws) { |
no test coverage detected