Plugins - AjaxMessaging
Add to favoritesUsing AjaxMessaging, Rails view can receive real time update from back-end Messaging Oriented Middleware (MOM).
What Happens:
- Client open a AJAX connection to Rails
- Rails connect to MOM using STOMP, listening for specific channels, if there are incoming messages, they are sent to client.
- If no message for a short period (~30s), the ajax connection return and client try again.
Features:
- Message sent to client at realtime
- Only regular HTTP connection is required. No socket server, no hacks on HTTP Pushing. Therefore, most firewall and browser supports it.
- Subscription to multiple channels. Message can sent to either user or channels.
- Integrated plugin, simple helper functions.
Requirements:
- Rails 1.2+
- json gem (gem install json)
- stomp gem (gem install stomp)
- Mongrel (gem install mongrel), you must use mongrel as web server as AjaxMessaging use Mongrel custom HttpHandler
- MOM supports STOMP, e.g. ActiveMQ
http://code.google.com/p/ajaxmessaging/
http://ajaxmessaging.googlecode.com/svn/trunk/plugins/ajaxmessaging
Rails' (MIT)
Misc. Enhancements
