MCPcopy Create free account
hub / github.com/apache/cloudstack / _socketOpen

Method _socketOpen

systemvm/agent/noVNC/core/rfb.js:798–807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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");

Callers 1

_connectMethod · 0.95

Calls 1

_failMethod · 0.95

Tested by

no test coverage detected