Railsify!

Juggernaut

The Juggernaut plugin for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your app can have a real time connection to the server with the advantage of instant updates. Although the obvious use of this is for chat, the most exciting prospect is collaborative cms and wikis.

What happens?

  • Client A opens socket connection to the socket server
  • Client B makes Ajax call to Rails
  • Rails sends message to the socket server
  • Socket server broadcasts message to clients

Features

  • Allows a real time connection with a client – Rails can literally push javascript in real time to the client which is then evaluated.
  • Push server – written in Ruby.
  • Integrated, as a plugin, into Rails.
  • Subscribers can subscribe to multiple channels, and broadcasters can broadcast to multiple channels.
  • Broadcasts can be made to channels, or to a specific client.
  • Connect/Disconnect triggers.
  • Authentication support.
  • Uses Flash 8 – installed on more than 95% of computers.
  • Supports all the major browsers (uses fscommand): Firefox 1+, IE 6+ and Safari 2+.