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

    Money-back 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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    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

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scanned

    Verified clean 2 months ago

    • Passed all security checks, Safe to install

    Listed2 months ago

    What's inside

    Frequently Asked Questions