You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat <<EOF | nc -l -p 9999
HTTP/1.1 200 OK
Content-Type: text/event-stream
: this comment does not generate an event
id: 0
data: sending some data with an ID
: this comment DOES generate an event
EOF
Description
Comments (the
: message
syntax) are supposed to be ignored by the client but this actually works only before an event with an ID is sent. After the first event that has an ID, all empty messages generate events on the client because the last ID is reloaded and then any message is "not empty" anymore.How to reproduce
Server:
Client:
Output:
What should happen instead?
I'd say that empty messages should not generate events
The text was updated successfully, but these errors were encountered: