Subscribe to real-time streams from your tasks in React components
useRealtimeRunWithStreams
hook allows you to subscribe to a run by its ID and also receive any streams that are emitted by the task.
useRealtimeRunWithStreams
hook to get type-safety:
*withStreams
variants of the Realtime hooks accept an experimental_throttleInMs
option to throttle the updates from the server. This can be useful if you are getting too many updates and want to reduce the number of updates.