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