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
1626e0f8
Commit
1626e0f8
authored
Apr 19, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md and TODO.
parent
07287cfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
19 deletions
+27
-19
README.md
README.md
+26
-16
TODO
TODO
+1
-3
No files found.
README.md
View file @
1626e0f8
...
@@ -5,28 +5,38 @@ VNC HTML5 Client
...
@@ -5,28 +5,38 @@ VNC HTML5 Client
Description
Description
-----------
-----------
An VNC client implemented using HTML5, specifically Canvas and Web Sockets.
An VNC client implemented using HTML5, specifically Canvas and
WebSocket.
For browsers that do not have builtin WebSocket support, the project
includes web-socket-js, a WebSocket emulator using Adobe Flash
(http://github.com/gimite/web-socket-js).
Requirements
Requirements
------------
------------
*
A browser that supports Web Sockets (mostly Chrome as of Apr 6, 2010)
Until there is VNC server support for WebSocket connections, you need
and Canvas (most browsers)
to use a WebSocket to TCP socket proxy. There is a python proxy
included ('wsproxy').
*
Until VNC server support web sockets, you need to use a Web Sockets to
There a few reasons why a proxy is required:
normal socket proxy. There are a couple reasons for this:
1.
Web
Sockets
is not a pure socket protocol. There is an initial HTTP
1.
Web
Socket
is not a pure socket protocol. There is an initial HTTP
like handshake to allow easy hand-off by web servers and allow
some
like handshake to allow easy hand-off by web servers and allow
origin policy exchange. Also, each Web Sockets frame begins with
some origin policy exchange. Also, each WebSocket frame begins
0 ('
\x
00') and ends with 255 ('
\x
ff').
with
0 ('
\x
00') and ends with 255 ('
\x
ff').
2.
Javascript itself does not have the ability to handle pure byte
2.
Javascript itself does not have the ability to handle pure byte
strings (Unicode encoding messes with it) even though you can read
strings (Unicode encoding messes with it) even though you can
them with Web Sockets. The python proxy base64 encodes the data so
read them with WebSocket. The python proxy encodes the data so
that the Javascript client can base64 decode the data into an array.
that the Javascript client can base64 decode the data into an
array. The client requests this encoding
3.
When using the web-socket-js as a fallback, WebSocket 'onmessage'
events may arrive out of order. In order to compensate for this
the client asks the proxy (using the initial query string) to add
sequence numbers to each packet.
Usage
Usage
...
@@ -34,7 +44,7 @@ Usage
...
@@ -34,7 +44,7 @@ Usage
*
run a VNC server.
*
run a VNC server.
`
Xvnc
:1`
`
vncserver
:1`
*
run the python proxy:
*
run the python proxy:
...
@@ -52,7 +62,7 @@ Usage
...
@@ -52,7 +62,7 @@ Usage
*
Point your web browser at http://localhost:8080/vnc.html
*
Point your web browser at http://localhost:8080/vnc.html
(or whatever port you used above to run the web server).
(or whatever port you used above to run the web server).
*
Provide the host and port where the proxy is running and the
password
*
Provide the host and port where the proxy is running and the
that the vnc server is using (if any).
password that the vnc server is using (if any). Hit the Connect
button and enjoy!
TODO
View file @
1626e0f8
- Make packet sequence number optional based on WebSockets 'path'.
- Add WSS/https/SSL support to page and wsproxy.py
- Add WSS/https/SSL support to page and wsproxy.py
- Make C version of wsproxy.py
- Make C version of wsproxy.py
- Implement UI option for
shared
.
- Implement UI option for
VNC shared mode
.
- Upgrade to protocol 3.8
- Upgrade to protocol 3.8
- implement ZRLE encoding
- implement ZRLE encoding
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