Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Native support for EventSource #1639

Closed
SamyPesse opened this issue Feb 8, 2024 · 0 comments
Closed

Native support for EventSource #1639

SamyPesse opened this issue Feb 8, 2024 · 0 comments

Comments

@SamyPesse
Copy link

EventSource is a good and simple API to easily implement streaming. At the moment, it's easy to generate an event source stream from a Cloudflare Worker, but it's not easy to consume one from a Clouflare Worker.

Most polyfills are incompatible with Cloudflare Workers:

While it's definitely possible to make a polyfill of EventSource works on Worker, it'd be great if this API could be natively supported, especially as the API surface is light and not browser-specific.

It looks like @cloudflare/ai also consumes an EventSource API, but it's unclear what polyfill is being used there and if the Cloudflare team could publish it as an open source package.

@cloudflare cloudflare locked and limited conversation to collaborators Feb 8, 2024
@kentonv kentonv converted this issue into discussion #1640 Feb 8, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant