I’m trying to learn EventMachine (and become a better, asynchronous programmer). I thought I would go with the classic chat app.
I manged to setup a WebSocket (using em-websocket) server and a WebSocket client. All was great until I realized that most browsers don't support WebSocket! Especially IE. My curse for using Chrome everywhere. lol
So, how can I use EventMachine as my server (to receive incoming messages) and be able to send messages back to subscribed clients?
Plus, I want this to work in any browser.
Thanks for any suggestions.
If I am not mistaken, the
em-websocketproject has an example of a WebSocket client using flash fallback if WebSockets are not available. I haven’t actually tried this, so I may be wrong.