More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    Repair SSE Reconnect & Event Gaps

    1

    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.

    $2.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair SSE Reconnect & Event Gaps

    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.

    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 use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    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

    Listed1 month ago

    What's inside

    Frequently Asked Questions