Rails Simple Chat Demo
Exploring several solutions (Ajax polling, WebSockets with Faye, HTML Server-Side Events) for asynchronous commenting using Rails.
See SitePoint's Mini-Chat with Rails, Realtime Mini-Chat with Rails and Faye, and Mini-chat with Rails and Server-Side Events tutorials by Ilya Bodrov for more information.
The master
and sse
branches contain the code for Server-Side Events. The basic chat, Ajax polling, and Websockets with Faye versions are all located in similarly named branches.