2

Is there any library to use Comet in Rails 3?

I read that Juggernaut does not work anymore.

I'm using Passenger standalone as the server.

HappyDeveloper
  • 12,480
  • 22
  • 82
  • 117

4 Answers4

2

What about Faye? Here's a Railscast screencast which will help you.

By the way, we discussed this issue a few days ago. Here's the question.

Community
  • 1
  • 1
mohamagdy
  • 2,093
  • 2
  • 17
  • 22
  • Thanks for the recommendation, I will try it if juggernaut ever fails me. But for now, I already have a working comet server (juggernaut). I made it work yesterday. – HappyDeveloper Feb 26 '12 at 03:00
0

Juggernaut does not work anymore due SSEs.

This is a browser API that lets you keep open a socket to your server, subscribing to a stream of updates. It's perfect for the use-case Juggernaut was created for, and what's more can be implemented in a few lines of Ruby. In other words, it makes Juggernaut completely redundant.

I found a gem that implements some Comet functionalities: Cramp, I haven't used it yet, but you can try to implement it in your proyect.

Bismark
  • 720
  • 7
  • 10
0

Ok I tried Juggernaut and had some problems installing its dependencies, but after solving that it worked just fine. It does not depend on Rails, you only need Ruby, so it works with Rails 3 too.

HappyDeveloper
  • 12,480
  • 22
  • 82
  • 117
0

You can use Pusher. It's not free, but very easy to use.

Camille
  • 678
  • 6
  • 23