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

push_stream_ping_message_interval (eventsource) #187

Closed N1Knight closed 9 years ago

N1Knight commented 9 years ago

The above directive does not seem to work with eventsource. Is this correct ? We do not get ping message on the subscriber side when this directive is set in eventsource mode. Thanks.

wandenberg commented 9 years ago

While using eventsource connections the ping message is just a comment, something like ":-1". This way, the connection is kept open due traffic but the client is not notified of a "new message". You can check this doing a connection with curl command as example.