Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
c7fc3c08
Commit
c7fc3c08
authored
Feb 19, 2014
by
Julien Fontanet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WebSocket protocols are now configurable.
parent
e791b875
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
rfb.js
include/rfb.js
+4
-1
No files found.
include/rfb.js
View file @
c7fc3c08
...
@@ -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"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment