mise API - v0.0.0
    Preparing search index...

    Function retrieve_fireAndWatch

    • Opens a LONK WebSocket, fires retrieves for the tasks, and blocks until every task reaches a terminal state. Mutates each task's status, actualFiles, and lonkConfirmed; reports progress through the events.

      Parameters

      • tasks: RetrieveTask[]

        Tasks to subscribe, fire, and watch.

      • pacsserver: string

        Resolved PACS server identifier.

      • client: Client

        Authenticated ChRIS API client (for the LONK token).

      • events: RetrieveWatchEvents = {}

        Progress callbacks.

      • phase: "watching" | "retrying" = 'watching'

        Phase tag passed through to task events.

      Returns Promise<number>

      Number of tasks whose retrieve could not be fired.