Server-Sent Events Builder
Configure SSE event fields and instantly preview the raw text/event-stream wire format plus a ready-to-use JavaScript EventSource client snippet.
Configure SSE Event
1
text/event-stream
Fill in fields and click Generate...
SSE Field Reference
| Field | Required | Description |
|---|---|---|
| data: | Yes | The event payload. Repeat for multi-line. |
| event: | No | Named event type; defaults to "message". |
| id: | No | Sets Last-Event-ID for reconnect resumption. |
| retry: | No | Reconnect delay in milliseconds. |
Copied!
Summary
Configure SSE event fields and instantly preview the raw text/event-stream wire format plus a ready-to-use JavaScript EventSource client snippet.
How it works
- Fill in the Event Name, Data payload, optional ID, and optional Retry interval.
- The raw text/event-stream output updates live as you type.
- Copy the raw SSE block to paste into your server-side handler.
- Switch to the Client Code tab to get a ready-to-use JavaScript EventSource snippet.
- Copy either block with one click and paste directly into your project.
Use cases
- Prototype SSE payloads before wiring up a real server.
- Learn the text/event-stream wire format visually.
- Generate boilerplate EventSource client code for Node.js, Python, or Go backends.
- Debug SSE streams by comparing expected vs. actual wire output.
- Teach colleagues how SSE differs from WebSockets.
- Quickly produce multi-line data events with correct continuation formatting.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu