• Joel Martin's avatar
    Add web-socket-js support with packet re-ordering. · 5d8e7ec0
    Joel Martin authored
    - web-socket-js is from http://github.com/gimite/web-socket-js. It is
      a flash object that emultates WebSockets.
    
    Unfortunately, events (or packets) from the web-socket-js object can
    get re-ordered so we need to know the packet order.
    
    - So wsproxy.py prepends the sequence number of the packet when
      sending.
    
    - If the client receives packets out of order it queues them up and
      scans the queue for the sequence number it's looking for until
      things are back on track. Gross, but hey: It works!
    
    - Also, add packet sequence checking to wstest.*
    5d8e7ec0
wstest.py 5.59 KB