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

    Interface PublishOptions

    interface PublishOptions {
        headers?: MsgHdrs;
        reply?: string;
        traceDestination?: string;
        traceOnly?: boolean;
    }

    Hierarchy

    • TraceOptions
      • PublishOptions
    Index

    Properties

    headers?: MsgHdrs

    Optional headers to include with the message.

    reply?: string

    An optional subject where a response should be sent. Note you must have a subscription listening on this subject to receive the response.

    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.