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

Server-sent events support eg: text/event-stream #25

Open
bariscck opened this issue May 5, 2024 · 1 comment
Open

Server-sent events support eg: text/event-stream #25

bariscck opened this issue May 5, 2024 · 1 comment

Comments

@bariscck
Copy link

bariscck commented May 5, 2024

Hey @AndrewBarba ,

Is there any way to use (server sent events) http streaming? I tried to implement it with Vapor and AsyncThrowingStream but the parent function only supports async throws; therefore no response is returned until the stream ends.

Thank you.

@AndrewBarba
Copy link
Contributor

Hey! Unfortunately right now this package only implements the fully buffered response body, but Vercel does support streaming responses so there's a clear path forward to add support in this package. I'll leave this open to track it, I have to do some investigating to see what that API looks like.

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

No branches or pull requests

2 participants