Interface: UseServingStreamOptions\<K, T\>
Type Parameters
Section titled “Type Parameters”K extends ServingAlias = ServingAlias
T = InferServingChunk<K>
Properties
Section titled “Properties”alias?
Section titled “alias?”
optionalalias?:K
Endpoint alias for named mode. Omit for default mode.
autoStart?
Section titled “autoStart?”
optionalautoStart?:boolean
If true, starts streaming automatically on mount. Default: false
onComplete?
Section titled “onComplete?”
optionalonComplete?: (chunks) =>void
Called with accumulated chunks when the stream completes successfully.
Parameters
Section titled “Parameters”chunks
Section titled “chunks”T[]
Returns
Section titled “Returns”void