Simple pub/sub messaging for the web

Ruby server

WebSockets for Ruby

Since version 0.5, Faye has supported WebSockets as a network transport for sending messages to the browser. The code that handles this is decoupled from the rest of the library and can be used to make your own WebSocket applications.

These classes are available as a stand-alone library, faye-websocket