MessageSubscribeSpec

MessageSubscribeSpec

Specification for message subscriber methods. That is, methods which register a consumer to start receiving messages.

Properties:
Name Type Description
consumer number

The index of the consumer in the method's arguments. Note that if the consumer and callback indexes point to the same argument, the argument will be wrapped as a consumer.

messageHandler MessageHandlerFunction

A function to extract message properties from a consumed message. This method is only used in the consume case to pull data from the retrieved message. Its return value is combined with the MessageSubscribeSpec to fully describe the consumed message.

Source:
See:

Extends