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

Create a EventSource implementation #10298

Closed
MickeL opened this issue Apr 21, 2021 · 3 comments · Fixed by #14730
Closed

Create a EventSource implementation #10298

MickeL opened this issue Apr 21, 2021 · 3 comments · Fixed by #14730
Assignees
Labels
feat new feature (which has been agreed to/accepted) suggestion suggestions for new features (yet to be agreed)

Comments

@MickeL
Copy link

MickeL commented Apr 21, 2021

It seems there is no implementation for EventSource to read server-sent events in deno.

It would be a useful feature when reading events from another server from deno, just like one would in a browser client.

https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#receiving_events_from_the_server

@kitsonk
Copy link
Contributor

kitsonk commented Apr 21, 2021

This is not something that would require unique support in the CLI. It is something that could start as a community package and maybe be added to the std library. Deno includes the primitives to provide this already, like the fetch API and the DOM EventTarget.

@MickeL MickeL closed this as completed May 10, 2021
@kitsonk kitsonk reopened this Jul 23, 2021
@kitsonk
Copy link
Contributor

kitsonk commented Jul 23, 2021

@MierenManz here is the issue mentioned in Discord.

Re-opening, as suggested it is a community project and we have increased our desire for inclusion of other web platform APIs, even if they don't require specialised support from the Deno runtime to work.

@stale
Copy link

stale bot commented Sep 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 21, 2021
@kitsonk kitsonk added the suggestion suggestions for new features (yet to be agreed) label Sep 21, 2021
@stale stale bot removed the stale label Sep 21, 2021
@ry ry added the feat new feature (which has been agreed to/accepted) label Feb 12, 2022
crowlKats added a commit that referenced this issue Oct 31, 2023
Closes #10298

---------

Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat new feature (which has been agreed to/accepted) suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants