(code = 1000, reason?: string)
| 718 | } |
| 719 | |
| 720 | public close(code = 1000, reason?: string): void { |
| 721 | if (this.closed) return; |
| 722 | try { |
| 723 | this.socket.close(code, reason); |
| 724 | } catch { |
| 725 | |
| 726 | } |
| 727 | |
| 728 | } |
| 729 | |
| 730 | public get hasClientHello(): boolean { |
| 731 | return this.gotClientHello; |