UMIS SDK
    Preparing search index...

    Interface RelayEmulator

    A running emulator: where it listens, what its switch is doing, and how to stop it.

    interface RelayEmulator {
        url: string;
        close(): Promise<void>;
        state(): {
            last?: { at: number; iss?: string; jti: string };
            on: boolean;
            until?: number;
        };
    }
    Index
    url: string

    Base address of the emulator, http://<host>:<port>, with the port that is actually bound.

    • Stops listening and closes every connection; resolves once the server is closed. A second call returns the same promise.

      Returns Promise<void>

    • The switch as the clock sees it: on is the output now, until the second at which an output that is on flips back off, and last the time, jti and issuer of the last command obeyed.

      Returns {
          last?: { at: number; iss?: string; jti: string };
          on: boolean;
          until?: number;
      }