[Cppcms-users] "endless" stream of data
Brought to you by:
artyom-beilis
From: Marcel H. <ke...@co...> - 2011-12-27 13:42:17
|
Hi guys, I'd like to use some new, cool, trendy, hightech, modern and ultracool technique called SSE or ServerSentEvents (https://developer.mozilla.org/en/Server-sent_events/Using_server-sent_events) But to do that I'd like to make an endless stream of data like the PHP script does. But how to "flush" the data to the client? I tried response().finalize() context().async_complete_response() (but i can't use it, because the object isn't useable for communication anymore) and some other tricks. So I want to now, how to make an asynchron, endless stream of data in cppcms. Maybe you can add an example for this, because it's HTML5, and that rocks ;) Regards Marcel Hellwig |