IFClite TypeScript API
    Preparing search index...

    Type Alias HelloVerdict

    HelloVerdict:
        | {
            connectionId: string
            | null;
            ok: true;
            protocol: ProtocolVersion;
            replaces: boolean;
            resume?: true | ResumePoint | null;
            wants: Capability[] | null;
        }
        | { ok: false; reason: HelloRefusal }

    Type Declaration

    • {
          connectionId: string | null;
          ok: true;
          protocol: ProtocolVersion;
          replaces: boolean;
          resume?: true | ResumePoint | null;
          wants: Capability[] | null;
      }

      resume (2.1): what the hello asked of connection.resume, null when it did not ask. Optional, so a verdict a 2.0 consumer builds still type-checks; read it as verdict.resume ?? null.

    • { ok: false; reason: HelloRefusal }