EventMap interface
Typed event map for a queue's EventEmitter base, giving compile-time signatures for the only two events a queue emits.
Signature:
export interface EventMap
Remarks
The map is closed, so emit/on with any other event name is a type error — there is no connect, close, ready or drain event on a queue.
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
[error: Error, eventName: string] |
Emitted for background failures, with the error and the name of the internal routine that caught it — a diagnostic label such as | ||
|
[data: JsonObject, id: string, from: string] |
Emitted for every message consumed from the queue, with the payload, the message id, and the name of the queue that sent it. |
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.