wandenberg/nginx-push-stream-module — pull request #26 by sebcante (2012-04-30 04:08:03+00:00)
Title: Long polling -  end of batch indicator

Hi wandenberg,

This is a small feature request to make the client of pushstream.js aware when it is the end of a batch of messages (long polling)

Added a End of batch flag for client of pushtream.js to know when it is finished receiving a long polling batch of messages. End of batch flag is set to true for all transports except long polling when the client receives a batch of messages at once in between 2 long polling request. This is to help client of pushstream.js to implement some filter logic at batch level (for example discard stale messages).

Use case : high push rate, longPollingInterval medium high

Let me know if this could be incorporated in pushstream.js or may be if there is smarter way to do this.

cheers

-seb