* Destroy the client and underlying socket
()
| 139 | * Destroy the client and underlying socket |
| 140 | */ |
| 141 | destroy () { |
| 142 | if (this.socket && !this.socket.destroyed) { |
| 143 | this.socket.destroy() |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | markAuthenticated () { |
| 148 | this.state = STATES.AUTHENTICATED |