API Event Emitter Skill for Server-Sent Event Replay
Define order update events, wire a local EventSource client, and verify replay and deduplication after reconnecting.
中文Install in Claude Code
Use your local API and test page with a small replayable event buffer. Use synthetic orders.
- Get the complete `plugins/api-development/api-event-emitter/skills/emitting-api-events` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/emitting-api-events/SKILL.md`, start Claude Code at the project root, and call `/emitting-api-events`.
Example task
Emit event 1 for O1 accepted. Disconnect the client and emit event 2 for shipped. Reconnect with Last-Event-ID=1 and replay event 2 from the buffer.What to check
The page applies the new shipped state once. The test can inspect event order and any duplicates.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does SSE automatically restore events missed during a disconnect?
The server must retain replayable events and use the prior ID, with a defined resync path when history has expired.