[go: nahoru, domu]

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

feat: allow newline runs in data #2786

Closed
wants to merge 1 commit into from

Conversation

drbh
Copy link
Contributor
@drbh drbh commented Jun 13, 2024

This PR allows runs of \n chars to be included in an event stream data. Subsequently this will stop \n from being stripped from a message and includes it in the payload.

This is helpful in a use case where the server needs to send text with multiple lines in a single event.

I believe this still aligns with the SSE specification since I cannot find specifics around removing/including newline runs. Please let me know what you think of this change and if anything should be updated.

Thanks

@ttys3
Copy link
Contributor
ttys3 commented Jun 26, 2024

@drbh drbh closed this Jul 1, 2024
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.

None yet

2 participants