Skip to content

Missing (clear) description of message structure #39373

@theking2

Description

@theking2

MDN URL

files/en-us/web/api/eventsource/message_event/index.md

What specific section or headline is this issue about?

Examples

What information was incorrect, unhelpful, or incomplete?

It is not clear that raw message must have a very specific structure in order for the EventSource recognize. Also server site buffering will result in behaviour in which the onmessage event is only triggered after a large number of messages is send.

What did you expect to see?

Mentioning of message structere:

event: <event-name>\n
data: \n\n

Note: For smaller messages, make sure server side buffering is adjusted adquately for message to be send in time.

Do you have any supporting links, references, or citations?

Switch off buffering for for instance nginx proxies, php-fpm etc is not at all trivial. And should at least be mentioned

Do you have anything more you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions