InboundWrapper
InboundWrapper = (
handler,metadata) => (payload,context) =>Promise<any>
Defined in: packages/hoppity/src/interceptors/types.ts:49
Wraps a handler function. Receives the original handler and per-message metadata. Returns a replacement handler with the same signature.
Composition: for interceptors [A, B], the call chain is A → B → handler. A wraps B which wraps the original handler — unwinding goes B → A on return/throw.
Metadata is built per-message because headers vary per message. The wrapper itself is called per-message with fresh metadata each time.
Parameters
Section titled “Parameters”handler
Section titled “handler”(payload, context) => Promise<any>
metadata
Section titled “metadata”Returns
Section titled “Returns”(
payload,context):Promise<any>
Parameters
Section titled “Parameters”payload
Section titled “payload”any
context
Section titled “context”Returns
Section titled “Returns”Promise<any>