Commit c7fc3c08 authored by Julien Fontanet's avatar Julien Fontanet

WebSocket protocols are now configurable.

parent e791b875
...@@ -142,6 +142,9 @@ Util.conf_defaults(conf, that, defaults, [ ...@@ -142,6 +142,9 @@ Util.conf_defaults(conf, that, defaults, [
['xvp_password_sep', 'rw', 'str', '@', 'Separator for XVP password fields'], ['xvp_password_sep', 'rw', 'str', '@', 'Separator for XVP password fields'],
['disconnectTimeout', 'rw', 'int', 3, 'Time (s) to wait for disconnection'], ['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 // UltraVNC repeater ID to connect to
['repeaterID', 'rw', 'str', '', 'RepeaterID to connect to'], ['repeaterID', 'rw', 'str', '', 'RepeaterID to connect to'],
...@@ -304,7 +307,7 @@ function connect() { ...@@ -304,7 +307,7 @@ function connect() {
} }
Util.Info("connecting to " + uri); Util.Info("connecting to " + uri);
// TODO: make protocols a configurable // TODO: make protocols a configurable
ws.open(uri, ['binary', 'base64']); ws.open(uri, conf.wsProtocols);
Util.Debug("<< RFB.connect"); Util.Debug("<< RFB.connect");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment