Get update via Server-Sent Events (eventsource) from server
-
How do we code for this?
SSE:http://dev.w3.org/html5/eventsource/
I know JS is able to do this. But, not sure Qt is support SSE.
@if (!!window.EventSource) {
var source = new EventSource('sse.php');
} else {
// error
}
Is there away to do it to C++? -
@drategon
Sorry for opening this thread.But this is my question also. How fetch sse events in qt?
-
Hi
I think you can use
QNetworkAccessManager for this
https://stackoverflow.com/questions/54170742/server-sent-events-sse-with-qtbut i never tested it :)