From c7fc3c082fb4afee9fea77cdc9a78c5ac31c935a Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 19 Feb 2014 19:29:06 +0100 Subject: [PATCH] WebSocket protocols are now configurable. --- include/rfb.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/rfb.js b/include/rfb.js index 700e5a8a..c9fd92a9 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -142,6 +142,9 @@ Util.conf_defaults(conf, that, defaults, [ ['xvp_password_sep', 'rw', 'str', '@', 'Separator for XVP password fields'], ['disconnectTimeout', 'rw', 'int', 3, 'Time (s) to wait for disconnection'], + ['wsProtocols', 'rw', 'arr', ['binary', 'base64'], + 'Protocols to use in the WebSocket connection'], + // UltraVNC repeater ID to connect to ['repeaterID', 'rw', 'str', '', 'RepeaterID to connect to'], @@ -304,7 +307,7 @@ function connect() { } Util.Info("connecting to " + uri); // TODO: make protocols a configurable - ws.open(uri, ['binary', 'base64']); + ws.open(uri, conf.wsProtocols); Util.Debug("<< RFB.connect"); }