Re: [Cppcms-users] Server Sent events and CppCMS
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-08-09 14:29:39
|
You know... The EventStream is so interesting and good concept so I'll write a class that allows to handle it easily. It will go to contrib section. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Artyom Beilis <art...@ya...> >To: "cpp...@li..." <cpp...@li...> >Sent: Thursday, August 9, 2012 3:57 PM >Subject: Re: [Cppcms-users] Server Sent events and CppCMS > > > > > >----- 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/ > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |