Send all waiting packets
()
| 204 | |
| 205 | /** Send all waiting packets */ |
| 206 | sendQueue() { |
| 207 | while (this.isOpen && this.#logged && this.#sendQueue.length > 0) { |
| 208 | const packet = this.#sendQueue.shift(); |
| 209 | this.#ws.send(packet); |
| 210 | if (global.TW_DEBUG) console.log('§90§30§107 > §0', packet); |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * @typedef {Object} ClientOptions |
no test coverage detected