D
D
Dmitry2016-09-06 16:52:15
PHP
Dmitry, 2016-09-06 16:52:15

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

1 answer(s)
R
Rsa97, 2016-09-06
@kiff86

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 question

Ask a Question

731 491 924 answers to any question