Re: [Cppcms-users] Consumer producer problem
Brought to you by:
artyom-beilis
|
From: Christian G. <chr...@gm...> - 2013-03-13 14:43:43
|
--
Christian Gmeiner, MSc
2013/3/13 Artyom Beilis <art...@ya...>:
>>
>
>> [...]
>> In the end it looks like I have a one process <----> one browser session
>> connection.
>>
>
>> [...]
>> --
>> Christian Gmeiner, MSc
>
>
> So why not just use?
>
> // disable gzip to allow transparent flush
> response().io_mode(nogzip);
> // something like that not remember exactly the content type and API
> response().content_type("text/event-stream");
>
>
> while(get_some_input_from_process()!=EOF) {
>
> sse::write_event(response().out(),id,data);
>
> response().out() << std::flush;
> }
>
Are you talking about the response() of the JSON-RPC call? If yes then
I don't need
SSE.
thanks
--
Christian Gmeiner, MSc
|