You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Hi, I would like to know if it is possible to implement an SSE protocol on top of Casablanca, the main idea would be to send multiple replies to an web::http::http_request object whenever new data arrives to be distributed to a connected client, since I cannot use the reply() method multiple times what would be the right way to do it?
I have also tried to use the set_response_stream method on web::http::http_request but I have an exception in this case. Is it doable using Casablanca?
The exception could be coming from when our internal implementation tries to read from the dataStream (since it is an output stream).
You might want to use a producer_consumer_buffer here. Then you can write to the buffer and our internal implementation can read from the buffer and send the data.
Hi ... I was able to implement Server Sent Event(SSE) using above proposed solution.
Now I am stuck on how to determine whether underlying connection is still active before writing SSE data on stream.
It is very urgent can u please suggest a way determine whether SSE connection is active or not.
Hi, I would like to know if it is possible to implement an SSE protocol on top of Casablanca, the main idea would be to send multiple replies to an
web::http::http_requestobject whenever new data arrives to be distributed to a connected client, since I cannot use thereply()method multiple times what would be the right way to do it?I have also tried to use the
set_response_streammethod onweb::http::http_requestbut I have an exception in this case. Is it doable using Casablanca?Thanks for your attention,