What is the Ruby equivalent of Node.js' socket.io?

node.js, ruby-on-rails, rubygems, socket.io, websocket

Solution

I'd recommend the Faye Ruby implementation as a solid server-side realtime component. It's not a direct port of socket.io but provides you with the realtime infrastructure and some well define messaging concepts that will help you port most realtime applications.

You can find more options via the realtime web tech guide.

Problem

If I wanted to translate my node application that uses socket.io into a Ruby on Rails application what are the options for replacing socket.io? (Essentially looking for a socket server for Ruby) http://socket.io/ Plan to translate the application below: http://www.tokbox.com/blog/creating-chat-roulette-with-node-js-socket-io-and-opentok/

Original source