1
Some implementation notes:
3
There is an included flash object (web-socket-js) that is used to
4
emulate websocket support on browsers without websocket support
5
(currently only Chrome has WebSocket support).
7
Javascript doesn't have a bytearray type, so what you get out of
8
a WebSocket object is just Javascript strings. Javascript has UTF-16
9
unicode strings and anything sent through the WebSocket gets converted
10
to UTF-8 and vice-versa. So, one additional (and necessary) function
11
of wsproxy is base64 encoding/decoding what is sent to/from the
14
Building web-socket-js emulator:
16
cd include/web-socket-js/flash-src
17
mxmlc -static-link-runtime-shared-libraries WebSocketMain.as