()
| 78 | } |
| 79 | |
| 80 | destroy(): void { |
| 81 | if (this.closed) return; |
| 82 | this.closed = true; |
| 83 | if (!this.socket.destroyed) { |
| 84 | this.socket.destroy(); |
| 85 | } |
| 86 | this.emit("close", 1006, "Connection destroyed"); |
| 87 | } |
| 88 | |
| 89 | get isClosed(): boolean { |
| 90 | return this.closed; |
no outgoing calls
no test coverage detected