Update to a build based on 20f837425d4 from gimite/web-socket-js. This changes the event handling code and fixes the frequent recursive call into Flash errors.
web-socket-js is a flash based WebSockets emulator. From: http://github.com/gimite/web-socket-js