wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

Getting all sent messages to avoid duplicates #146

Closed mynote closed 10 years ago

mynote commented 10 years ago

Hello, is there any way getting all sent messages of a channel before sending it, to avoid duplicate sending of a single message?

For example, if there is a push which control a trigger, but the device is not connected yet. The user may send the request several times because the client takes some time to reconnect.

Hows it possible doing that?

wandenberg commented 10 years ago

To get old messages you should give a backtrack value on channel id, like /sub/ch1.b30 to get the last 30 messages, if available. Or should set the If-Modified-Since header with an old date. Take a look if one of those issues you have opened can help you #133 and #136