Trying to implement an ajax call to a streaming endpoint on my server. Need the connection to accept continuous pushed data from the server, but XMLHttpRequest seems to buffer the entire response. Want the browser client to receive each chunk of data once and move forward.
Looking for a way to stop this behavior. Any solutions?
UPDATE: Discovered that Firefox can handle this by setting XMLHttpRequest.responseType to "moz-chunked-text" or "moz-chunked-arraybuffer". Unfortunately, other browsers don't support this feature. Probably not the most reliable approach anyway.
WebKit equivalent to Firefox's "moz-chunked-arraybuffer" xhr responseType