Cotal TypeScript packages
    Preparing search index...

    Type Alias SessionEvent

    SessionEvent:
        | { message: SessionMessage; type: "message" }
        | {
            change: "joined" | "updated" | "left";
            row: RosterRow;
            type: "presence";
        }
        | { reason?: string; state: ConnectionState; type: "connection" }
        | { reason: string; scope: string; type: "gap" }

    Type Declaration

    • { message: SessionMessage; type: "message" }
    • { change: "joined" | "updated" | "left"; row: RosterRow; type: "presence" }
    • { reason?: string; state: ConnectionState; type: "connection" }
    • { reason: string; scope: string; type: "gap" }

      Messages may have been missed: a live-only channel while disconnected, a retention bound, a dropped buffer. Never presented as complete history.