@nats-io/nats-core
    Preparing search index...

    Interface RequestOptions

    interface RequestOptions {
        headers?: MsgHdrs;
        noMux?: boolean;
        reply?: string;
        timeout: number;
        traceDestination?: string;
        traceOnly?: boolean;
    }

    Hierarchy

    • TraceOptions
      • RequestOptions
    Index

    Properties

    headers?: MsgHdrs

    MsgHdrs to include with the request.

    noMux?: boolean

    If true, the request API will create a regular NATS subscription to process the response. Otherwise a shared muxed subscriptions is used. Requires reply

    reply?: string

    The subject where the response should be sent to. Requires noMux

    timeout: number

    number of milliseconds before the request will timeout.

    traceDestination?: string

    If set, the server will send events representing the flow of the message as it moves through the system to this subject.

    traceOnly?: boolean

    If true, the message will NOT be delivered, and instead will just generate trace information. Note that in the context of requests, this means the service will not be triggered so the operation will timeout or return no responses.