SSE Frame Parser
Paste a finished text/event-stream body and list each event name, id, and data. A blank line dispatches the block. The end of the text does not.
The body never leaves the browser. Nothing is uploaded, and the body is not stored in the URL.
Paste a finished body. A chunk cut across two packets stays as pasted. Files up to 1 MB open in the page. The page stops at 1,000,000 characters.
Not parsed
Events
Copy and Download use this summary.
About this tool
The split follows the HTML Standard for text/event-stream. The body is UTF-8. One leading BOM, U+FEFF, is removed. Lines end on CRLF, LF, or CR. An empty line dispatches the current block. A comment line starts with a colon and is ignored. The field name is the text before the first colon. One leading space after that colon is removed. A line with no colon is a field whose value is empty.
Field names are case-sensitive. data appends its value plus a line feed. On dispatch, one trailing line feed is removed. An empty data buffer does not dispatch. The event type defaults tomessage when the block never set event. Anid that contains a null character is ignored. An empty id clears the id buffer. The id reported on an event is the one committed by the blank line.
retry is applied when that field line is read, and only when the value is one or more ASCII digits and a safe integer.03000 is read as 3000 milliseconds. Unknown fields are ignored. The end of the text drops a block that never got a blank line, even if retry from that block was already applied. This page reads one complete string. It does not join a chunk that was cut across packets. After 30 notes, further notes are omitted.
Read more
Free books, courses, and software
Get my programming books, course editions, and complete software.
Get the download library →