Basically for server side events and other notification to the browser I'm using "infinite timeout ajax request s" but unfortunately with qhttp its not working.
I am storing qhttp::server::QHttpResponse * in a suitable data structure but end() function is called on it aka the socket is getting closed the server is not accepting other requests.
Only when a particular QHttpConnection is getting deleted then only the next one is getting created!
But I need to store them and write response data only when I have some notification to send to client.
Basically for server side events and other notification to the browser I'm using "infinite timeout ajax request s" but unfortunately with qhttp its not working. I am storing qhttp::server::QHttpResponse * in a suitable data structure but end() function is called on it aka the socket is getting closed the server is not accepting other requests. Only when a particular QHttpConnection is getting deleted then only the next one is getting created! But I need to store them and write response data only when I have some notification to send to client.