Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NatsClientService

Index

Constructors

Methods

Constructors

  • Parameters

    • client: ClientProxy

    Returns NatsClientService

Methods

  • publish(eventName: string, data: any): void
  • Publishes events on nats Generates the event as an object with 'endpoint' key that specifies the ServiceName/eventName.

    Parameters

    • eventName: string

      the event name

    • data: any

      the data to be passed as payload of the event

    Returns void

Generated using TypeDoc