From f8318361b1b62c4d76b091132d4a8ccfdd2957e4 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Sat, 14 Oct 2017 12:45:56 +0200 Subject: [PATCH] Remove wsProtocols setting It isn't in use anymore since we deprecated support for Base64 mode. --- core/rfb.js | 4 +--- docs/API.md | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core/rfb.js b/core/rfb.js index ec413a84..2fe251c2 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -133,7 +133,6 @@ export default function RFB(defaults) { 'shared': true, // Request shared mode 'view_only': false, // Disable client mouse/keyboard 'disconnectTimeout': 3, // Time (s) to wait for disconnection - 'wsProtocols': ['binary'], // Protocols to use in the WebSocket connection 'repeaterID': '', // [UltraVNC] RepeaterID to connect to 'viewportDrag': false, // Move the viewport on mouse drags @@ -375,7 +374,7 @@ RFB.prototype = { try { // WebSocket.onopen transitions to the RFB init states - this._sock.open(this._url, this._wsProtocols); + this._sock.open(this._url, ['binary']); } catch (e) { if (e.name === 'SyntaxError') { this._fail("Invalid host or port value given", e); @@ -1453,7 +1452,6 @@ make_properties(RFB, [ ['scale', 'rw', 'float'], // Display area scale factor ['viewport', 'rw', 'bool'], // Use viewport clipping ['disconnectTimeout', 'rw', 'int'], // Time (s) to wait for disconnection - ['wsProtocols', 'rw', 'arr'], // Protocols to use in the WebSocket connection ['repeaterID', 'rw', 'str'], // [UltraVNC] RepeaterID to connect to ['viewportDrag', 'rw', 'bool'], // Move the viewport on mouse drags ['capabilities', 'ro', 'arr'], // Supported capabilities diff --git a/docs/API.md b/docs/API.md index 8617be49..f129a288 100644 --- a/docs/API.md +++ b/docs/API.md @@ -37,7 +37,6 @@ attribute mode is one of the following: | scale | float | RW | 1.0 | Display area scale factor | viewport | bool | RW | false | Use viewport clipping | disconnectTimeout | int | RW | 3 | Time (in seconds) to wait for disconnection -| wsProtocols | arr | RW | ['binary'] | Protocols to use in the WebSocket connection | repeaterID | str | RW | '' | UltraVNC RepeaterID to connect to | viewportDrag | bool | RW | false | Move the viewport on mouse drags | capabilities | arr | RO | [] | Supported capabilities (can include: 'power', 'resize')