I wrote a decent tutorial about this.
Summarizing:
Include the web_socket.js and flash (swf) object on the page and web_socket.js . The web_socket.js object contains the necessary code to back up to FlashSocket if WebSockets is not supported.
If you want to use this in a real application, you will need to upload the Flash Policy files to port 843. I will also consider this.
Josh k
source share