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
96513f56
Commit
96513f56
authored
Jun 28, 2011
by
Joel Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git@github.com:kanaka/noVNC
parents
0b7bc4e9
95ff836e
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 @
96513f56
...
@@ -35,6 +35,7 @@ var that = {}, // Public API methods
...
@@ -35,6 +35,7 @@ var that = {}, // Public API methods
rfb_host
=
''
,
rfb_host
=
''
,
rfb_port
=
5900
,
rfb_port
=
5900
,
rfb_password
=
''
,
rfb_password
=
''
,
rfb_uri
=
''
,
rfb_state
=
'disconnected'
,
rfb_state
=
'disconnected'
,
rfb_version
=
0
,
rfb_version
=
0
,
...
@@ -272,7 +273,7 @@ function connect() {
...
@@ -272,7 +273,7 @@ function connect() {
}
else
{
}
else
{
uri
=
"ws://"
;
uri
=
"ws://"
;
}
}
uri
+=
rfb_host
+
":"
+
rfb_port
+
"/"
;
uri
+=
rfb_host
+
":"
+
rfb_port
+
"/"
+
rfb_uri
;
Util
.
Info
(
"connecting to "
+
uri
);
Util
.
Info
(
"connecting to "
+
uri
);
ws
.
open
(
uri
);
ws
.
open
(
uri
);
...
@@ -1446,12 +1447,13 @@ clientCutText = function(text) {
...
@@ -1446,12 +1447,13 @@ clientCutText = function(text) {
// Public API interface functions
// Public API interface functions
//
//
that
.
connect
=
function
(
host
,
port
,
password
)
{
that
.
connect
=
function
(
host
,
port
,
password
,
uri
)
{
//Util.Debug(">> connect");
//Util.Debug(">> connect");
rfb_host
=
host
;
rfb_host
=
host
;
rfb_port
=
port
;
rfb_port
=
port
;
rfb_password
=
(
password
!==
undefined
)
?
password
:
""
;
rfb_password
=
(
password
!==
undefined
)
?
password
:
""
;
rfb_uri
=
(
uri
!==
undefined
)
?
uri
:
""
;
if
((
!
rfb_host
)
||
(
!
rfb_port
))
{
if
((
!
rfb_host
)
||
(
!
rfb_port
))
{
return
fail
(
"Must set host and 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