Re: [Cppcms-users] Server Sent events and CppCMS
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-08-09 12:58:04
|
----- Original Message ----- > From: Barbu Paul - Gheorghe <bar...@gm...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Thursday, August 9, 2012 2:59 PM > Subject: Re: [Cppcms-users] Server Sent events and CppCMS > > On 08/09/2012 02:23 PM, Artyom Beilis wrote: >> >> >>> On 08/09/2012 01:29 PM, Artyom Beilis wrote: >>>> Are you familiar with this? >>>> >>>> http://cppcms.com/wikipp/en/page/cppcms_1x#Comet.Programming >>> >>> No, I haven't followed that part of the tutorial, but I read it. >>> But thinking of it ... >>> >>> Will it work if instead of the long pooling connection I'll use the >>> EventStream in JS? >> >> I'm not familiar with EventStream of JS. But if it supports server >> side events... Than it does either long polling or some sort of streaming >> like hidden iframe or "never-ending" javascript etc. >> >> There are many COMET techniques. > > http://www.w3.org/TR/eventsource/ Ohhh!! So cool, good to know! ;-) > > Hmm, when I'll have some free time I'll modify your coment example and > try to > make it work with SSE. > > Wish me luck :) > It should be quite simple, just use async_flush and continue to wait. It is very nice and what is more important it does not require changes in web server api (fcgi/scgi) in order to implement it unlike WebSockets (that had zillion drafts for it) > Thank you for your time! > > -- > Barbu Paul - Gheorghe > Common sense is not so common - Voltaire > Visit My GitHub profile to see my open-source projects - > https://github.com/paullik Best, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |