Unfortunately, this approach will not work for clients using Internet Explorer (save for IE 10). WebSockets and EventStreams are fairly new, and not supported across all browsers (both for mobile and non-mobile).
This is why socket.io and its contemporaries have several layers of fallbacks, even going back to infinite iframe/JSONP polling.
I would suggest anyone implementing this take a look at faye-websocket. It was recently extracted from a production-quality project named Faye, which uses a pub-sub broadcast model based on bayeux. The websocket implementation has numerous fallbacks, and is well-tested. I'm using it in production currently.
Is there any information out there regarding streams / chunked responses within Rails? (I'm not talking about the new template stream facility, but generating arbitrary data)
I'm currently using enumerators assigned to response_body:
Could you link to a fuller gist? Is self referring to an ActionDispatch::Response object? I plan on improving rails integration with rack-stream so that you can call `#chunk` from controllers and that will defer sending a chunk of content.
This is why socket.io and its contemporaries have several layers of fallbacks, even going back to infinite iframe/JSONP polling.