# Nginx\_http\_push\_module subscriber leaving

**URL:** <https://www.ruby-forum.com/t/nginx-http-push-module-subscriber-leaving/199788>\
**Category:** NGINX\
**Created:** [November 29, 2010, 11:10am UTC](https://www.ruby-forum.com/t/nginx-http-push-module-subscriber-leaving/199788 "2010-11-29T11:10:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 29, 2010, 11:10am UTC](https://www.ruby-forum.com/t/nginx-http-push-module-subscriber-leaving/199788/1 "2010-11-29T11:10:05Z")

</div>

Hi,

I am Zeeshan. I am going to use nginx\_http\_push\_module for one of my  
webservices. It’s a live visitors feed service, which tells the visitors  
of  
a site who else is visiting the site at the same time in real time. So  
the  
model is that every url is a channel and visitors on a page subscribes  
to  
the channel for that page and start getting the feed whenever a new  
visitor  
arrives. So far it’s simple and i have figured out how to do it using  
nginx\_http\_push\_module.

What I am unable to figure out is that visitors close the page/browser  
to  
leave the channel. How to know that a subscriber has left the channel  
and  
broadcast his departure to all the subscribers?

Any help would be really appreciated.

Thanks,  
Zeeshan
