Answer the question
In order to leave comments, you need to log in
Is it possible to get ejabberd(2) user's messages using php?
Who knows if there is such a possibility?
I have an old ejabberd 2.
website in php
All facilities in the working domain. I want to get a list of new messages from a specific user on the site. Is it possible?
Answer the question
In order to leave comments, you need to log in
EMNIP, in XMPP you can only get the messages themselves. Moreover, they come to the first requester and are then stored on the client, the server forgets about them.
PS And the messages themselves can be received, for example, through libphp-jabber.
PPS If ejabberd is configured to store messages in mysql, then you can get a list of messages not yet accepted by the client directly from the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question