8

I am using rails for more than 2 years now,,now I am building a real time application which is simple social network ,using private_pub gem for commenting and notifications ,I read about nodejs and I am learning it for the 3rd week now ,nodejs is really amazing platform ,,but I want to know how I can integrate nodejs and socket.io with my rails app for providing online/offline feature and also for chatting .

1 Answer 1

8

You can check this post, it's a tutorial for integrating Rails + node.js + socket.io + redis

http://liamkaufman.com/blog/2013/02/27/adding-real-time-to-a-restful-rails-app/

3
  • Thanks dear moustafa ya gada3,,actually I integrated socket.io with my rails app after 1 day from asking my question but I forgot to answer it .Its so easy but you need to take care of security .you are using sockets at the end
    – Remon Amin
    May 17, 2013 at 9:06
  • 1
    el 3afw ya Remon :) welcome, did you complete the project with Faye server or node.js? any information about the scalability of Faye ? as I was planning to use it for sockets. thanks :) May 17, 2013 at 12:38
  • thanks ya sa7by ,,actually I am using both faye and socket.io on my current and new rails apps ..socket.io for detecting online/offline users and faye for pub/sub but If you have any articles about fayejs security except on fayejs site ,,,I will be so happy
    – Remon Amin
    May 17, 2013 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.