Is there any way I can parse a chunked response through AJAX as the chunks are being received?
For example, server.com/ping
is set up so it sends a new chunk with some javascript in it, something like ping()
, every 10 seconds which updates a number on the web page visible to the user. Is there a way to parse the individual "chunks" of information through AJAX, basically without reaching XHR state 4?