()
| 796 | } |
| 797 | |
| 798 | _socketOpen() { |
| 799 | if ((this._rfbConnectionState === 'connecting') && |
| 800 | (this._rfbInitState === '')) { |
| 801 | this._rfbInitState = 'ProtocolVersion'; |
| 802 | Log.Debug("Starting VNC handshake"); |
| 803 | } else { |
| 804 | this._fail("Unexpected server connection while " + |
| 805 | this._rfbConnectionState); |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | _socketClose(e) { |
| 810 | Log.Debug("WebSocket on-close event"); |