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

    Class ChrisContext

    Manages the ChRIS session context.

    Index
    • Get the current value for a specific context type. Identity (user, URL) is read from storage each time; session state is this process's own once loaded.

      Parameters

      • context: Context

        The context type to retrieve.

      Returns Promise<string | null>

      The current context value or null.

    • Set the value for a specific context type.

      Parameters

      • context: Context

        The context type to set.

      • value: string

        The value to set.

      Returns Promise<boolean>

      True on success, false on failure.

    • Reloads every context from storage: the explicit re-read, for a fresh identity (after a connect) or a deliberate resync. The session-state contexts (folder, feed, plugin, PACS server) are otherwise OWNED BY THIS PROCESS once loaded: their files are written for the next process to restore from, never re-read mid-session — two daemons of one identity once shared a working directory through that file, and a cd in one moved the other.

      Returns Promise<SingleContext>

      The refreshed context snapshot.