UMIS SDK
    Preparing search index...

    Interface RelayClient

    Opens a relay for a number of seconds. The answer says whether the relay took the command (ok), the HTTP status of its reply (0 when there was none) and, on failure, a short reason. The call does not throw for anything the relay or the network does.

    interface RelayClient {
        open(
            i: { now: number; seconds: number; switchId: number },
        ): Promise<{ error?: string; ok: boolean; status: number }>;
    }
    Index
    • Parameters

      • i: { now: number; seconds: number; switchId: number }

      Returns Promise<{ error?: string; ok: boolean; status: number }>