So chatting with some people in IRC it was recommended to me to extend
EM::Channel with my, which worked out pretty nicely. My new class
(EM::P::AMQPEndpoint) wraps the underlying Messenger type from the
Proton libraries and, when a message is received, pushes that message
into the Channel for processing.
Now, how would one refine this in order to send more messaging-related
events. What I'm thinking is notifications on a per-message as well as
per-connection basis. So, for example, A creates a message and sends it
to B. There are scenarios where A wants to know that B received the
message, or that B has either acknowledged or rejected the message, or
that B has sent a reply to that specific message. In such a case I would
like to fire off events like:
* message_sent
* message_send_failure
* message_received
* message_acknowledged
* message_rejected
* reply_received
But I don't see all of the above represented in the protocols modules.
What would be the recommended path for adding such notifications?
--
Darryl L. Pierce <
mcpi...@gmail.com>
http://mcpierce.blogspot.com/
Famous last words:
"I wonder what happens if we do it this way?"