Skip to main content

Function: processStreamingResponse()

function processStreamingResponse(response: Response, onProgress?: OnProgressCallback): Promise<Results>

Parse a streaming response and return the results.

Parameters

ParameterTypeDescription

response

Response

A streaming Response object

onProgress?

OnProgressCallback

A callback to be called with the current state of the session

Returns

Promise<Results>

A promise that resolves to the final results of the session