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
95ff836e
Commit
95ff836e
authored
Jun 27, 2011
by
Joel Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #67 from EdSchouten/master
Add support for setting the WebSocket URI path.
parents
68edd7f4
3b8caa4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
rfb.js
include/rfb.js
+4
-2
No files found.
include/rfb.js
View file @
95ff836e
...
...
@@ -35,6 +35,7 @@ var that = {}, // Public API methods
rfb_host
=
''
,
rfb_port
=
5900
,
rfb_password
=
''
,
rfb_uri
=
''
,
rfb_state
=
'disconnected'
,
rfb_version
=
0
,
...
...
@@ -272,7 +273,7 @@ function connect() {
}
else
{
uri
=
"ws://"
;
}
uri
+=
rfb_host
+
":"
+
rfb_port
+
"/"
;
uri
+=
rfb_host
+
":"
+
rfb_port
+
"/"
+
rfb_uri
;
Util
.
Info
(
"connecting to "
+
uri
);
ws
.
open
(
uri
);
...
...
@@ -1446,12 +1447,13 @@ clientCutText = function(text) {
// Public API interface functions
//
that
.
connect
=
function
(
host
,
port
,
password
)
{
that
.
connect
=
function
(
host
,
port
,
password
,
uri
)
{
//Util.Debug(">> connect");
rfb_host
=
host
;
rfb_port
=
port
;
rfb_password
=
(
password
!==
undefined
)
?
password
:
""
;
rfb_uri
=
(
uri
!==
undefined
)
?
uri
:
""
;
if
((
!
rfb_host
)
||
(
!
rfb_port
))
{
return
fail
(
"Must set host and port"
);
...
...
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