Skip to content

feat: add close() method to ServerSentEventGenerator#11

Merged
eduwass merged 1 commit intomainfrom
add-close-method
Dec 3, 2025
Merged

feat: add close() method to ServerSentEventGenerator#11
eduwass merged 1 commit intomainfrom
add-close-method

Conversation

@eduwass
Copy link
Collaborator

@eduwass eduwass commented Dec 3, 2025

Fixes #5 - adds public close() method to allow manual stream closure when keepalive: true is set. Previously users had to use workarounds to access protected controller/res properties.

  • Add abstract close() method to abstract class
  • Implement close() in Node.js (calls res.end())
  • Implement close() in Web runtime (calls controller.close() with error handling)"

Fixes #5 - adds public close() method to allow manual stream closure
when keepalive: true is set. Previously users had to use workarounds
to access protected controller/res properties.

- Add abstract close() method to abstract class
- Implement close() in Node.js (calls res.end())
- Implement close() in Web runtime (calls controller.close() with error handling)"
@eduwass eduwass merged commit f125c34 into main Dec 3, 2025
2 checks passed
@eduwass eduwass deleted the add-close-method branch December 3, 2025 01:49
@eduwass eduwass mentioned this pull request Dec 3, 2025
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.

Closing the stream manually

1 participant