Faye (github) is a rack-based messaging system that allows web clients to communicate.
Ryan Bates created private_pub (github) to easily add Faye to Rails projects. There is a Railscast for that here.
This project is a barebones private_pub deployment that runs as a separate app. It uses foreman export for running as daemon on server.