]> git.proxmox.com Git - mirror_novnc.git/blame - docs/notes
Merge commit 'd38db74abd0efa34f7297dc19bf603b7f765e0f5'
[mirror_novnc.git] / docs / notes
CommitLineData
af6b17ce
JM
1Some implementation notes:
2
3There is an included flash object (web-socket-js) that is used to
4emulate websocket support on browsers without websocket support
5(currently only Chrome has WebSocket support).
6
af6b17ce 7Javascript doesn't have a bytearray type, so what you get out of
2574936f
JM
8a WebSocket object is just Javascript strings. Javascript has UTF-16
9unicode strings and anything sent through the WebSocket gets converted
10to UTF-8 and vice-versa. So, one additional (and necessary) function
11of wsproxy is base64 encoding/decoding what is sent to/from the
12browser.
486cd527
JM
13
14Building web-socket-js emulator:
15
16cd include/web-socket-js/flash-src
17mxmlc -static-link-runtime-shared-libraries WebSocketMain.as