Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove the default value of wsProtocols
Using the 'binary' protocol by default is very non-standard.
  • Loading branch information
samhed committed Jul 23, 2019
1 parent 21387f9 commit c912230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/rfb.js
Expand Up @@ -53,7 +53,7 @@ export default class RFB extends EventTargetMixin {
this._shared = 'shared' in options ? !!options.shared : true;
this._repeaterID = options.repeaterID || '';
this._showDotCursor = options.showDotCursor || false;
this._wsProtocols = options.wsProtocols || ['binary'];
this._wsProtocols = options.wsProtocols || [];

// Internal state
this._rfb_connection_state = '';
Expand Down
3 changes: 2 additions & 1 deletion docs/API.md
Expand Up @@ -188,7 +188,8 @@ connection to a specified VNC server.
encountered.

`wsProtocols`
- Protocols to use in the WebSocket connection, the default is: ['binary']
- An `Array` of `DOMString`s specifying the sub-protocols to use
in the WebSocket connection. Empty by default.

#### connect

Expand Down

0 comments on commit c912230

Please sign in to comment.