Setu-TS
    Preparing search index...

    Type Alias RequestHandler<TReq, TRes>

    RequestHandler: (
        message: TReq,
        metadata: MessageMetadata,
    ) => TRes | Promise<TRes>

    Responder for a request topic. Its resolved value is sent back to the caller as the reply, correlated to the originating request.

    Type Parameters

    • TReq = unknown

      The request payload type

    • TRes = unknown

      The reply payload type

    Type Declaration

    0.1.0