Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove wsProtocols setting
It isn't in use anymore since we deprecated support for Base64 mode.
  • Loading branch information
CendioOssman committed Nov 9, 2017
1 parent 5b4e5d0 commit f831836
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions core/rfb.js
Expand Up @@ -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

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion docs/API.md
Expand Up @@ -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')
Expand Down

0 comments on commit f831836

Please sign in to comment.