()
| 122 | abstract doWrite(packet: Packet, data: RawData); |
| 123 | |
| 124 | override doClose() { |
| 125 | if (typeof this.ws !== "undefined") { |
| 126 | this.ws.onerror = () => {}; |
| 127 | this.ws.close(); |
| 128 | this.ws = null; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Generates uri for connection. |