Skip to content

Add feature to continue streaming on browser refresh/exit page #470

Closed
@shadizx

Description

@shadizx

I read through the docs, especially the https://sdk.vercel.ai/docs/concepts/backpressure-and-cancellation part, and I think it would be useful to add a functionality that makes it optional to continue streaming instead of cancelling the stream if the user exits page or refreshes.

Example use case:
Let's say I am streaming the data, and want to put the response in my database when it's done. If the user exits the page, I can still consume the stream on the server, and still put it in my database when it's done. However, with the current version, the stream would cancel and there is no way to continue consuming the stream on server/api.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions