On the client side, this adds the as3crypto library to web-socket-js
so that the WebSocket 'wss://' scheme is supported which is WebSocket
over SSL/TLS.
Couple of downsides to the fall-back method:
- This balloons the size of the web-socket-js object from about 12K to 172K.
- Getting it working required disabling RFC2718 web proxy support
in web-socket-js.
- It makes the web-socket-js fallback even slower with the
encryption overhead.
The server side (wsproxy.py) uses python SSL support. The proxy
automatically detects the type of incoming connection whether flash
policy request, SSL/TLS handshake ('wss://') or plain socket
('ws://').
Also added a check-box to the web page to enable/disabled 'wss://'
encryption.
22 lines
622 B
Plaintext
22 lines
622 B
Plaintext
Canvas Browser Compatibility:
|
|
http://philip.html5.org/tests/canvas/suite/tests/results.html
|
|
|
|
WebSockets API standard:
|
|
http://dev.w3.org/html5/websockets/
|
|
|
|
Browser Keyboard Events detailed:
|
|
http://unixpapa.com/js/key.html
|
|
|
|
ActionScript (Flash) WebSocket implementation:
|
|
http://github.com/gimite/web-socket-js
|
|
|
|
ActionScript (Flash) crypto/TLS library:
|
|
http://code.google.com/p/as3crypto
|
|
http://github.com/lyokato/as3crypto_patched
|
|
|
|
TLS Protocol:
|
|
http://en.wikipedia.org/wiki/Transport_Layer_Security
|
|
|
|
Generate self-signed certificate:
|
|
http://docs.python.org/dev/library/ssl.html#certificates
|