Interface Publisher

interface Publisher {
    publish(subject: string, data: Payload, options?: {
        headers?: MsgHdrs;
        reply?: string;
    }): void;
}

Methods

Methods

  • Parameters

    • subject: string
    • data: Payload
    • Optionaloptions: {
          headers?: MsgHdrs;
          reply?: string;
      }
      • Optionalheaders?: MsgHdrs
      • Optionalreply?: string

    Returns void