Closed KimShen closed 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,
I have the same problem (( How did you fix it?
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,