()
| 437 | // ===== PUBLIC METHODS ===== |
| 438 | |
| 439 | disconnect() { |
| 440 | this._updateConnectionState('disconnecting'); |
| 441 | this._sock.off('error'); |
| 442 | this._sock.off('message'); |
| 443 | this._sock.off('open'); |
| 444 | if (this._rfbRSAAESAuthenticationState !== null) { |
| 445 | this._rfbRSAAESAuthenticationState.disconnect(); |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | approveServer() { |
| 450 | if (this._rfbRSAAESAuthenticationState !== null) { |
nothing calls this directly
no test coverage detected