Answer the question
In order to leave comments, you need to log in
How to get old messages from nginx push stream?
In http I wrote:
push_stream_shared_memory_size 32m;
push_stream_max_messages_stored_per_channel 2000;
push_stream_message_ttl 1h;
push_stream_ping_message_interval 10s;
push_stream_store_messages on;
var timestamp = (new Date()).getTime(),
url = 'http://sample.ru/channel/' + channelId + '?callback=?&v=' + timestamp;
xhr.open('GET', url, true);
xhr.setRequestHeader("Etag", $this.etag);
xhr.setRequestHeader("Last-Modified", $this.time);
xhr.send();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question