IFClite TypeScript API
    Preparing search index...

    Interface RpcRequestOptions<Id>

    interface RpcRequestOptions<Id> {
        abortError?: () => Error;
        onAbort?: (id: Id) => void;
        onId?: (id: Id) => void;
        signal?: AbortSignal;
        timeoutError?: () => Error;
        timeoutMs?: number;
        transfer?: Transferable[];
    }

    Type Parameters

    • Id
    Index
    abortError?: () => Error
    onAbort?: (id: Id) => void
    onId?: (id: Id) => void

    Called with the id before the message is posted (e.g. to cancel it later).

    signal?: AbortSignal

    Abandon the request when this fires: it rejects with abortError(), its entry is dropped (a late answer is ignored) and onAbort(id) runs, e.g. to tell the other side to stop.

    timeoutError?: () => Error

    Error for a missed deadline; default "<label> did not answer within <ms> ms".

    timeoutMs?: number

    Overrides the endpoint's requestTimeoutMs for this request.

    transfer?: Transferable[]