Skip to content

Define and use default SSE type, "message"#78

Merged
mattt merged 4 commits intomainfrom
mattt/default-sse-event-type
Sep 19, 2024
Merged

Define and use default SSE type, "message"#78
mattt merged 4 commits intomainfrom
mattt/default-sse-event-type

Conversation

@mattt
Copy link
Copy Markdown
Contributor

@mattt mattt commented Sep 17, 2024

According to the HTML Standard, the default type for a server-sent event is "message". This PR corrects the current behavior, which sets a zero value (""`) if the event type isn't specified.

@mattt mattt requested a review from philandstuff September 17, 2024 21:12
Comment thread stream.go
@mattt mattt merged commit 63039fd into main Sep 19, 2024
@mattt mattt deleted the mattt/default-sse-event-type branch September 19, 2024 11:55
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.

2 participants