U
U
UZER20062013-03-11 16:20:22
PHP
UZER2006, 2013-03-11 16:20:22

How to add XMPP support to web chat?

There is a self-written AJAX chat based on PHP and dkLab Realplexor. I don't remember what's on the server. Some *nix.
Is it possible to somehow put an XMPP server on the same server and connect it to this chat so that mobile device users can connect through any client and communicate in the same way as through the web?
If we decide in the way that I see it now, the question is as follows: is there a soft XMPP server that can be hung on PHP handlers (first of all, this is getting a list of users, the ability to “kick” the same XMPP server when online status changes and the ability to call PHP on an incoming message).
And then the question is, what to do with authorization, if the web entrance is only through VK?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Santiago26, 2013-03-18
@UZER2006

On the basis of ejabberd, everything is possible, but in a very non-trivial way. You can't do it quickly alone. Check out Jappix . Rather, it’s suitable for you to take it and cut the authorization on VK to it.

M
Meliborn, 2013-03-11
@Meliborn

ejabberd ? You can put it on Mysql, and there it’s not far from php.

A
Andrey Shiryaev, 2013-03-11
@Claud

As far as I remember, there is an xml protocol by which you can send and receive messages, and I think all other actions are done the same way. Ready decisions I think are not present. But I think you can google articles with examples of work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question