Interface: UseServingStreamResult\<T, TBody\>
Type Parameters
Section titled “Type Parameters”T = unknown
TBody = Record<string, unknown>
Properties
Section titled “Properties”chunks
Section titled “chunks”chunks:
T[]
Accumulated chunks received so far.
error:
string|null
Error message, if any.
reset: () =>
void
Reset chunks and abort any active stream.
Returns
Section titled “Returns”void
stream
Section titled “stream”stream: (
overrideBody?) =>void
Trigger the streaming invocation. Pass an optional body override for this invocation.
Parameters
Section titled “Parameters”overrideBody?
Section titled “overrideBody?”TBody
Returns
Section titled “Returns”void
streaming
Section titled “streaming”streaming:
boolean
Whether streaming is in progress.