]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Remove wsProtocols setting
authorPierre Ossman <ossman@cendio.se>
Sat, 14 Oct 2017 10:45:56 +0000 (12:45 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 9 Nov 2017 11:52:05 +0000 (12:52 +0100)
It isn't in use anymore since we deprecated support for Base64 mode.

core/rfb.js
docs/API.md

index ec413a84f74140eaae7691bf036a121e4d6184f5..2fe251c2b9d96977b6d312676f154d1efca8b1c7 100644 (file)
@@ -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
index 8617be49e48306c64fced5fb7d1d33a60d1373d0..f129a288dcf0672ba8e57ec2f2e019d1eb79ebb3 100644 (file)
@@ -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')