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

Stored messages and WebSocket #81

Closed vash1486 closed 11 years ago

vash1486 commented 11 years ago

Hi,

is ti possible to gather the stored messages with a websocket connection? I already have js chat which work perfectly with a long-polling listener, but when I establish a new connection with the websocket it simply didn't return nothing...

thank you really much!

wandenberg commented 11 years ago

Nowadays, to get old messages with websocket you should use the backtrack value. Is on the roadmap to normalize these methods to get old messages (secondsAgo, backtrack, event id - used on EventSource internals)

vash1486 commented 11 years ago

Understood! And after a quick check with the backtrack, all seems to work well :+1: Now I only have to find a way to handle duplication on reconnect, while waiting for new releases, but this is a minor problem! I think that the "issue" can be considered closed, thank you really much for the module and for the fast answer! Roberto.