Matthew - If I want to cancel the stream. How w...
If I want to cancel the stream. How would I do that? For example on ai apps when the ai ai responding you can cancel it. Is this something buildship owns?
2 Replies
@Harini @gerard
@Matthew you need to handle this on client side using Abort controller https://developer.mozilla.org/en-US/docs/Web/API/AbortController
abortControllerRef.current?.abort();MDN Web Docs
AbortController - Web APIs | MDN
The AbortController interface represents a controller object that allows you to abort one or more Web requests as and when desired.