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
b688a909
Commit
b688a909
authored
Dec 15, 2011
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show close code and reason.
Also add commented out web-socket-js debug variable in include/websock.js
parent
06a9ef0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
rfb.js
include/rfb.js
+4
-1
websock.js
include/websock.js
+4
-0
No files found.
include/rfb.js
View file @
b688a909
...
...
@@ -225,7 +225,10 @@ function constructor() {
fail
(
"Got unexpected WebSockets connection"
);
}
});
ws
.
on
(
'close'
,
function
()
{
ws
.
on
(
'close'
,
function
(
e
)
{
if
(
e
.
code
)
{
Util
.
Info
(
"Close code: "
+
e
.
code
+
", reason: "
+
e
.
reason
+
", wasClean: "
+
e
.
wasClean
);
}
if
(
rfb_state
===
'disconnect'
)
{
updateState
(
'disconnected'
,
'VNC disconnected'
);
}
else
if
(
rfb_state
===
'ProtocolVersion'
)
{
...
...
include/websock.js
View file @
b688a909
...
...
@@ -24,6 +24,10 @@ if (window.WebSocket) {
window
.
WebSocket
=
window
.
MozWebSocket
;
}
else
{
/* no builtin WebSocket so load web_socket.js */
// To enable debug:
// window.WEB_SOCKET_DEBUG=1;
Websock_native
=
false
;
(
function
()
{
function
get_INCLUDE_URI
()
{
...
...
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