Cotal TypeScript packages
    Preparing search index...

    Interface AttachOutcome

    Why a session ended, as attachClient resolves it. The reason is the peer's distinct end reason, the transport's own (detached, peer-closed, connection-closed), or the broken rail's protocol-fault name. error is set when the end was a fault rather than a clean close; it is DATA here rather than a rejection, because a caller that reconnects has to read the reason to decide, and an exception carries it only as prose.

    interface AttachOutcome {
        carried: boolean;
        error?: Error;
        reason: string;
    }
    Index
    carried: boolean

    Did any seat output actually reach the terminal? The manager replays its backlog snapshot on every open, so a session that carried nothing never got that far — which is how a caller that reconnects tells a session that worked from one that died on the way up.

    error?: Error
    reason: string