- Home
- Skills
- APIs & Backend
- Repair SSE Reconnect & Event Gaps
More screenshots
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.
$8.99
Repair SSE Reconnect & Event Gaps
Example session with this skill installed
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.
- Read your context and instructions
- Compiled the repair sse reconnect
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.
Connects securely to your tools. The creator never sees your data.
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
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
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 1 month ago
- Passed all security checks, Safe to install