Works with the AI tools you already use
Repair SSE Reconnect & Event Gaps
Repair Server-Sent Events reconnect bugs that duplicate or skip events because Last-Event-ID, event framing, replay windows, retry state, proxy buffering, and stream generations disagree.
Secure checkout via Stripe
See it in action
You say
Our SSE endpoint stores the last sent id after writing to the socket, while the replay buffer evicts independently. On reconnect we sometimes replay one event twice or skip one. Repair with a deterministic fake transport and keep existing retention/retry policy.
Your agent does
The committed delivery cursor and replay-buffer ownership are not one transaction. The repair defines when an event becomes replay-visible and when the connection cursor advances, uses Last-Event-ID against that sequence, and tests disconnect before/after write commit, buffer edge, duplicate reconnect, heartbeat, and authorization changes.
What you get
About this skill
The problem
Server-Sent Events (SSE) often suffer from silent message loss, improper Last-Event-ID handling, and leaked stream connections. Developers struggle with inconsistent reconnection logic and race conditions between event buffers and client-side state ownership.
What it does
- Identifies and repairs defects in SSE framing and field parsing for id, event, and data payloads.
- Standardizes Last-Event-ID processing and retry timing across trust boundaries.
- Implements deterministic replay buffer logic and stream generation tracking.
- Fixes resource leaks by binding cleanup and heartbeat logic to specific transaction lifecycles.
- Generates local byte-level fixtures and loopback tests to verify delivery continuity.
Frameworks & tools
Works with any stack using standard SSE protocols, including Node.js, Go, Python, and Ruby. Utilizes Read, Edit, and Bash for repository-level patching.
Why this beats prompting it yourself
Manually fixing SSE gaps usually results in flaky tests or over-reliance on sleep() calls. This skill enforces a canonical contract for state transitions and uses deterministic local fakes to ensure repairs hold under high concurrency without weakening your existing authorization or retention policies.
Use cases
- Fixing message gaps during client reconnection or proxy buffering timeouts.
- Hardening heartbeat and retry policies to prevent stale connection hanging.
- Migrating fragmented SSE validation logic into a single, trusted normalization layer.
- Adding redacted observability to event streams without logging sensitive customer data.
How to install
Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean today
- One-time purchase, yours forever