Skip to content

docs: add EventSource server example#5321

Merged
metcoder95 merged 1 commit into
nodejs:mainfrom
Will-thom:oss/undici-eventsource-docs
May 25, 2026
Merged

docs: add EventSource server example#5321
metcoder95 merged 1 commit into
nodejs:mainfrom
Will-thom:oss/undici-eventsource-docs

Conversation

@Will-thom
Copy link
Copy Markdown
Contributor

Summary

  • add a self-contained EventSource server/client example to the API docs
  • clarify named events vs default message events
  • fix minor wording in the EventSource docs

Closes #536

Testing

  • git diff --check

Signed-off-by: Will-thom <116388885+Will-thom@users.noreply.github.com>
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.23%. Comparing base (f51afa0) to head (b670831).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5321   +/-   ##
=======================================
  Coverage   93.22%   93.23%           
=======================================
  Files         110      110           
  Lines       36599    36599           
=======================================
+ Hits        34120    34122    +2     
+ Misses       2479     2477    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@metcoder95 metcoder95 merged commit cc793b7 into nodejs:main May 25, 2026
38 checks passed
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

Successfully merging this pull request may close these issues.

How to handle text/event-stream?

4 participants