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

Can not get old message when init connection #160

Closed KimShen closed 10 years ago

KimShen commented 10 years ago

Can not get old message when init connection, Version: 0.4.0

Following the 'long_polling.textile' to config the 'Getting old messages' function: location /pub { push_stream_publisher admin; push_stream_store_messages on; push_stream_channels_path $arg_id; } location ~ /lp/(.*) { push_stream_subscriber long-polling; push_stream_last_received_message_time "$arg_time"; push_stream_last_received_message_tag "$arg_tag"; push_stream_channels_path $1; push_stream_message_template "{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\",\"tag\":\"~tag~\",\"time\":\"~time~\"}"; push_stream_longpolling_connection_ttl 30s; }

Html:

Messages:

Best Regards,

mobinvestor commented 9 years ago

I have the same problem (( How did you fix it?