Interface Events

Hierarchy

  • Events

Properties

aborted: []

Fired when requests to SQS were aborted.

empty: []

Fired when the queue is empty (All messages have been consumed).

error: [Error, void | Message | Message[]]

Fired when an error occurs interacting with the queue.

If the error correlates to a message, that message is included in Params

message_processed: [Message]

Fired when a message is successfully processed and removed from the queue.

message_received: [Message]

Fired when a message is received.

option_updated: [UpdatableOptions, number]

Fired when an option is updated

processing_error: [Error, Message]

Fired when an error occurs processing the message.

response_processed: []

Fired after one batch of items (up to batchSize) has been successfully processed.

started: []

Fired when the consumer starts its work..

stopped: []

Fired when the consumer finally stops its work.

timeout_error: [Error, Message]

Fired when handleMessageTimeout is supplied as an option and if handleMessage times out.