Boks SDK Documentation - v0.0.11
    Preparing search index...

    Class BoksTransaction<TResponse, TRequest>

    Represents a single request/response cycle with a Boks device. Captures the request, any intermediate packets (e.g. progress updates), and the final response or error.

    Type Parameters

    Index

    Constructors

    Properties

    error: Error | null = null
    intermediates: BoksPacket[] = []
    request: TRequest
    response: TResponse | null = null
    status: BoksTransactionStatus = BoksTransactionStatus.Pending

    Accessors

    • get durationMs(): number

      Returns the duration of the transaction in milliseconds. If the transaction is still pending, returns the time elapsed since start.

      Returns number

    Methods