From 52412d4ef04544e3d9e81826e121dc72ef6ae93b Mon Sep 17 00:00:00 2001 From: Vitaly Zverev Date: Mon, 6 Apr 2020 13:26:12 -0700 Subject: [PATCH] fix of error - 'code 400, message Client must support 'binary' or 'base64' protocol --- core/rfb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rfb.js b/core/rfb.js index 72f279a4..d75c3df6 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -72,7 +72,7 @@ export default class RFB extends EventTargetMixin { this._rfb_credentials = 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._rfb_connection_state = '';