nginx push question

Ian Hobson ian at ianhobson.co.uk
Wed Jun 30 13:47:19 MSD 2010


On 30/06/2010 09:55, Mike Baroukh wrote:
>
> Hi.
>
> I found the nginx_push_module recently and I'm trying to find if it 
> can fill my needs.
> It is really fantastic when 1 user subscribe to 1 stream.
>
> But, can someone tell me if there is a way for one user to subscribe 
> with one request to many channel ?
> I don't think because in the activity http response, there is no 
> header with he channel id to distinguish responses :
>
Hi Mike,

The way to do this is to have two httprequests outstanding, one for each 
channel.

If you set them up with different callbacks for when a response arrives 
then the messages for each channel will flow through independently of 
the other.

Regards

Ian







More information about the nginx mailing list