[ejabberd] Triggering a custom operation on ejabberd server just after a message Stanza has been sent to client

Abhishek Ranjan abhishek at blacklightsw.com
Thu Aug 31 11:12:00 MSK 2017


I wanted a functionality in ejabberd that gets triggered just after a message stanza has been sent to the client. For example Right now I am using user_send_packet hook that performs a custom operation every time any user sends the message stanza. The custom operation generates a new stanza(Packet) each time.

Now I wanted this new stanza(Packet) to pass as usual through the server and to be sent to user/client (which it is doing right now). But just after the Packet is sent to the client(I mean that at the time when the packet leaves the ejabberd server) I needed a hook that gets triggered. Is there any such hook present in ejabberd.

If not is there any other way I can trigger a custom operation once a packet is sent to the user/client.

Best Regards,

Abhishek Ranjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170831/24378bf6/attachment.html>

More information about the ejabberd mailing list