websocket-rails

Plug and play WebSocket support for ruby on rails.

Websocket-Rails

Now with streaming HTTP support for improved browser compatibility

The Present

Start treating client side events as first class citizens inside your Rails application with a built in WebSocket server. Sure, WebSockets aren't quite universal yet. That's why we also support streaming HTTP. Oh, and if you don't mind running a separate process, you can support just about any browser through Flash sockets without changing a line of code.

The Future

The long term goal for this project is simple. Reduce the need to move application logic on to the client while still providing the same level of interaction and responsiveness users have grown to expect from a modern web application. We hope to isolate the responsibility of JavaScript to the presentation layer and keep business logic nicely organized on the server.

Private Channel Support

Need to restrict access to a particular channel? No problem. We've got
that.

Private channels give you the ability to authorize a user's
subscription using the authorization mechanism of your choice.

Just tell WebsocketRails which channels you would like to make private and how you want to handle channel authorization in the
event router by subscribing to the websocket_rails.subscribe_private
event.