diff --git a/core/rfb.js b/core/rfb.js index d73bcdbf..606a6ab0 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -94,7 +94,7 @@ export default class RFB extends EventTargetMixin { this._rfbCredentials = options.credentials || {}; this._shared = 'shared' in options ? !!options.shared : true; this._repeaterID = options.repeaterID || ''; - this._wsProtocols = options.wsProtocols || []; + this._wsProtocols = options.wsProtocols || ['binary']; // Internal state this._rfbConnectionState = ''; @@ -1575,7 +1575,7 @@ export default class RFB extends EventTargetMixin { if (this._sock.rQwait("auth challenge", 16)) { return false; } // KasmVNC uses basic Auth, clear the VNC password, which is not used - this._rfb_credentials.password = ""; + this._rfbCredentials.password = ""; // TODO(directxman12): make genDES not require an Array const challenge = Array.prototype.slice.call(this._sock.rQshiftBytes(16)); @@ -1940,12 +1940,12 @@ export default class RFB extends EventTargetMixin { encs.push(encodings.pseudoEncodingCursor); } - if (supportsCursorURIs() && this._fb_depth == 24){ + //if (supportsCursorURIs() && this._fb_depth == 24){ // Allow the user to attempt using a local cursor even if they are using a touch device. KASM-395 if (this.preferLocalCursor || !isTouchDevice){ encs.push(encodings.pseudoEncodingCursor) } - } + //} RFB.messages.clientEncodings(this._sock, encs); }