The value returned by every streaming API in the SDK. Extends the original { close } return type backward-compatibly with a failure channel.
{ close }
state
done
closed
Handle states are only ever produced by createStreamHandle; the brand stops a structural { close } literal from passing as a stream handle.
createStreamHandle
Readonly
Resolves with the terminal reason when the handle becomes closed.
The current state of the stream.
Stop the stream and any reconnection. Idempotent.
The value returned by every streaming API in the SDK. Extends the original
{ close }return type backward-compatibly with a failure channel.stateis the current state; read it any time.doneresolves (never rejects) with the terminal reason when the handle reachesclosed.Handle states are only ever produced by
createStreamHandle; the brand stops a structural{ close }literal from passing as a stream handle.