1. 30 Apr, 2010 1 commit
    • Joel Martin's avatar
      Support for SSL/TLS ('wss://') on both sides. · adfe6ac1
      Joel Martin authored
      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.
      adfe6ac1