Class NatsPublisher<TEvent>
Constructors
constructor
-
Type parameters
Parameters
Properties
Readonly subject
subject: string
Accessors
stan
-
Returns Stan
The client.
Methods
publish
- publish(data: TEvent): Promise<void>
-
Parameters
Returns Promise<void>
The promise
A basic NATS event publisher.