Methods
dispose
-
Returns Promise<void>
onError
- onError(errorHandler: (err: Error) => void): Promise<void>
-
Parameters
-
errorHandler: (err: Error) => void
Returns Promise<void>
publish
- publish<T>(topic: string, message: T): Promise<void>
-
Type parameters
Parameters
Returns Promise<void>
subscribe
- subscribe<T>(topic: string, callback: (message: T) => void): Promise<void>
-
Type parameters
Parameters
-
topic: string
-
callback: (message: T) => void
Returns Promise<void>
waitForReady
- waitForReady(): Promise<boolean>
-
Returns Promise<boolean>
Event Client Interface
Used for communicating with Queueing systems, such as AMQP and MQTT
IEventClient