Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(serverless,cli): allow ending a stream before sending the response #458

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

QuiiBz
Copy link
Member

@QuiiBz QuiiBz commented Jan 6, 2023

About

It's possible to have a stream done before the response is sent. This was already "supported": meaning it was working fine, but wrongly assumed that it was an error.

This PR properly handle this data -> done -> start streaming flow, and also handle errors if we get data when the stream is already done.
Also simplify the js-runtime streaming handling, not sure why it used a new ReadableStream because it's 100% useless.

@vercel
Copy link

vercel bot commented Jan 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
dashboard ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 6, 2023 at 6:36PM (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 6, 2023 at 6:36PM (UTC)
storybook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 6, 2023 at 6:36PM (UTC)
www ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 6, 2023 at 6:36PM (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant