Thursday, November 20, 2014

Mini-chat with Rails and Server-Sent Events

cloud Sharing Concept


Recently, I've penned a couple of articles on building a chat application with Rails (Mini-Chat with Rails and Realtime Mini-Chat with Rails and Faye - check out the working demo here). In those articles, I explained how to build a simple mini-chat application and make it truly asynchronous using two alternatives: AJAX polling (less preferred) and Web Sockets.


One of the readers noted in the comments that Web Sockets could be replaced with HTML5 Server-Sent Events, so I decided to research the topic. Thus, this article came to life :).


Continue reading %Mini-chat with Rails and Server-Sent Events%




by Ilya Bodrov via SitePoint

No comments:

Post a Comment