Re: [Cppcms-users] Problem with Server Side Events
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2016-03-16 05:56:32
|
> I want is to be able to clear SSE events that have been sent but can't > figure out how to do that. Who knows how to do this? > See from the code below you use Status Stream - which gives always the latest status for a given situation. (if your code is based on my SSE) If you disconnect/reconnect you'll get the latest status in your case if it is a message popup than you'll get in after disco. So for messages queue that tracks what was sent is more suitable. > Furthermore I notice that connections are lost about every 30 seconds, which > seems to be some regulated timeout. Where is that configured? The other > thing I notice is that sometimes SSE events are sent without content and > without me initiating them. Where do these come from? > There should be some keep-alive messages, regarding 30 seconds. Take a look on http://cppcms.com/wikipp/en/page/cppcms_1x_config#http.timeout Also it is strange as it should not occur on "detached" connections so you can handle timeouts on your own. Artyom |