(also related to the other thread about websockets) Last time I did this using two server apps: 1) a Rails app with all my business logic, and 2) a Faye server (actually a Sinatra app) whose job is only to do the pub/sub part. The client connects to the Faye server and the Faye server can send messages directly to the client via websockets.
When someone writes a chat message, it goes through the Rails app, and then the Rails app sends a message to the Faye server telling the Faye server to publish the chat message. This was the most effective solution I found but I'm sure there are different architectures. check out... http://faye.jcoglan.com/ruby.html https://devcenter.heroku.com/articles/ruby-websockets > On Dec 4, 2014, at 2:10 AM, Giedrius Rimkus <giedrius....@gmail.com> wrote: > > Try this: http://www.opensourcerails.com/kandan/ > > Otherwise, I don't think there is plug and play solution for your case. You > need to use few gems, but the business logic is always different. > > Good luck. > > On Wednesday, December 3, 2014 6:50:28 PM UTC+1, Chandra wrote: > Hi...I'm new to Ruby on Rails and working on product development. I need to > implement chat application for all registered users.It should work like > facebook chat or gmail chat.How to develop it using rails 4? Is there any > code or plug-in's available for this task?I don't have any idea how to do it. > > Any help will appreciate > > Thanks > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com > <mailto:rubyonrails-talk+unsubscr...@googlegroups.com>. > To post to this group, send email to rubyonrails-talk@googlegroups.com > <mailto:rubyonrails-talk@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/ddddfb4f-4b5d-47ff-921e-5f2943fabfb7%40googlegroups.com > > <https://groups.google.com/d/msgid/rubyonrails-talk/ddddfb4f-4b5d-47ff-921e-5f2943fabfb7%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. ---- Jason Fleetwood-Boldt t...@datatravels.com http://www.jasonfleetwoodboldt.com/writing All material © Jason Fleetwood-Boldt 2014. Public conversations may be turned into blog posts (original poster information will be made anonymous). Email ja...@datatravels.com with questions/concerns about this. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/AD48739A-61B6-4405-9947-15871B58932C%40datatravels.com. For more options, visit https://groups.google.com/d/optout.