# Redis, pub/sub, rails 3, phusion passenger

**URL:** <https://www.ruby-forum.com/t/redis-pub-sub-rails-3-phusion-passenger/239904>\
**Category:** Rails\
**Created:** [March 19, 2014, 5:14am UTC](https://www.ruby-forum.com/t/redis-pub-sub-rails-3-phusion-passenger/239904 "2014-03-19T05:14:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [March 19, 2014, 5:14am UTC](https://www.ruby-forum.com/t/redis-pub-sub-rails-3-phusion-passenger/239904/1 "2014-03-19T05:14:40Z")

</div>

I have another application publishing messages to redis server. Within  
my  
rails application, when a user clicks a button, I want a popup to  
display  
that shows live updates. I want the controller to publish notifications  
to  
redis, and I want my javascript to subscribe to those events and respond  
when it finds a suitable channel. What I do not know how to do is  
actually  
keep a control open like that: to continuously publish messages when it  
finds them on redis. Is this possible to do in rails 3/phusion  
passenger?
