* Handle socket close event
()
| 226 | * Handle socket close event |
| 227 | */ |
| 228 | private handleClose(): void { |
| 229 | this.log(`handleClose: socket closed`) |
| 230 | |
| 231 | this.dispatchEvent(new CustomEvent('close')) |
| 232 | this.detach(false) // Already closed, just clean up |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * Print data in hex and ascii to the console |