]>
Commit | Line | Data |
---|---|---|
af6b17ce JM |
1 | Some implementation notes: |
2 | ||
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). | |
6 | ||
af6b17ce | 7 | Javascript doesn't have a bytearray type, so what you get out of |
2574936f JM |
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 | |
12 | browser. | |
486cd527 JM |
13 | |
14 | Building web-socket-js emulator: | |
15 | ||
16 | cd include/web-socket-js/flash-src | |
17 | mxmlc -static-link-runtime-shared-libraries WebSocketMain.as |