* Closes the underlying connection. * * @private
()
| 203 | * @private |
| 204 | */ |
| 205 | private close(): void { |
| 206 | if ("open" === this.conn.readyState) { |
| 207 | debug("forcing transport close"); |
| 208 | this.conn.close(); |
| 209 | this.onclose("forced server close"); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * Writes a packet to the transport. |