-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions for Server Sent Events added #1054
base: master
Are you sure you want to change the base?
Conversation
I would really prefer if pistache did not use |
…nse-stream Bugfix/fix connection check on response stream
@@ -126,7 +126,8 @@ namespace | |||
|
|||
// from | |||
// https://stackoverflow.com/questions/6624667/can-i-use-libcurls-curlopt-writefunction-with-a-c11-lambda-expression#14720398 | |||
auto curl_callback = +[](void* ptr, size_t size, size_t nmemb, | |||
typedef size_t (*CURL_WRITEFUNCTION_PTR)(void*, size_t, size_t, void*); | |||
auto curl_callback = [](void* ptr, size_t size, size_t nmemb, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change needed?
Hi, Option to support SSEs seems to be very useful for my project. |
Thanks @fleon-psi for checking in. This PR still needs some more. It needs to at least be rebased and a unit test added. |
Like described in #1040. I added
isOpened()
andisClosed(),
so it is possible to know when the client terminates the connection. I personaly use it for SSE.