MCP Server Framework - v1.0.0
    Preparing search index...

    Variable SESSION_CLOSE_REASONSConst

    SESSION_CLOSE_REASONS: {
        CLIENT_DISCONNECT: "client_disconnect";
        ERROR: "error";
        HEARTBEAT_FAILURE: "heartbeat_failure";
        REPLACED: "replaced";
        SHUTDOWN: "shutdown";
        TIMEOUT: "timeout";
    } = ...

    Reason for session closure.

    Single source of truth — use SESSION_CLOSE_REASONS.* instead of raw string literals.

    Type Declaration

    • ReadonlyCLIENT_DISCONNECT: "client_disconnect"
    • ReadonlyERROR: "error"
    • ReadonlyHEARTBEAT_FAILURE: "heartbeat_failure"
    • ReadonlyREPLACED: "replaced"
    • ReadonlySHUTDOWN: "shutdown"
    • ReadonlyTIMEOUT: "timeout"