Commit Graph

6 Commits

Author SHA1 Message Date
Joel Martin f8ee7b489d Encryption suppport for wstest. 2010-05-06 10:52:04 -05:00
Joel Martin 95ef30a167 websocket.py: generic code from wsproxy and wstest. 2010-05-06 10:32:07 -05:00
Joel Martin 1e633bc8ee wstest*. Fix Opera problems. Flash policy. Misc bugs.
Lame. Opera doesn't support javascript reduce().

Also, Opera seems to just plain be pathetic when it comes to
delivering the web-socket-js events. Around 1/5 to 1/3 of all received
packets are never received as an event at all.

- Change default delay for send side to 10ms.

- Use a textarea for errors so that even without console.* support
  (ala firebug) we still see the errors that are happening.
2010-04-19 10:41:06 -05:00
Joel Martin 5d8e7ec068 Add web-socket-js support with packet re-ordering.
- 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.*
2010-04-17 17:24:14 -05:00
Joel Martin af7a319387 Assemble partial received frames.
Apparently both native and flash WebSockets implementations can send
partial packets.
2010-04-16 15:53:59 -05:00
Joel Martin 89fbd66fa9 Add WebSockets test frontend and backend. 2010-04-16 13:58:08 -05:00