LearnBoost/engine.io-client — pull request #30 by mihs (2012-05-18 10:46:16+00:00)
Title: Flashsocket protocol does not work.

- Added code to FlashWS (imported from socket.io-client) to make it work.
- Added a policyPort option to Socket that is further send to FlashWS.
- Changed name of WebSocket import to WS in FlashWS to avoid name collision with WebSocket from web-socket.js and the native implementation of websockets.
- The check function is now a member of WS and FlashWS - this was done to be able to check what is the current transport to avoid the following problem: when reconnecting, WS on its own sees that there is a global WebSocket object, but that object may be the fake Flash WebSocket from web-socket.js. It then connects using that object, but the connection should have been done through FlashWS. Simply changing the name of the fake websocket will not work, it requires changing the action script source, which raises maintenance problems. Another solution could be to ask the maintainer of web-socket.js to add a configuration parameter.