I'm using xmpp4r with Rails 4 to implement a real-time web chat system. The XMPP server is Openfire and I'm using converse.js for the web client part. The problem is the following: when I login through the converse.js widget, the client is connecting (I can see it is online through the Openfire interface) but I can't send/receive messages to/from other accounts. Creating a group through the Openfire web interface and adding both users I want to use to the same group solved this problem and now I can communicate correctly. Now my questions are:
- Should I create a new group for each user that signs up on my site? This group will contain his friends so he can chat with them (I'm pretty sure the answer to this question is yes)
- How to create such a group automatically from code using xmpp4r?