(message)
| 99 | } |
| 100 | |
| 101 | async send(message) { |
| 102 | if (this._sendQueue !== undefined) this._sendQueue.push(message); |
| 103 | else this._ws.send(message); |
| 104 | } |
| 105 | |
| 106 | async receive() { |
| 107 | if (this._receiveQueue.length > 0) return this._receiveQueue.shift(); |