diff --git a/kasmweb/core/rfb.js b/kasmweb/core/rfb.js index 3cf3943..639a681 100644 --- a/kasmweb/core/rfb.js +++ b/kasmweb/core/rfb.js @@ -57,7 +57,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 = ''; diff --git a/kasmweb/docs/API.md b/kasmweb/docs/API.md index 803176c..aa6337f 100644 --- a/kasmweb/docs/API.md +++ b/kasmweb/docs/API.md @@ -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