I have established the connection to XMPP server. My question is if there is a Chat Room and new user wants to join, Should I user below Smack class to get it registered?
AccountManager accountManager = AccountManager.getInstance(connection);
accountManager.createAccount(username, password);
Will it create new users to join Room or will it create new user to Main Server. Please help to understand. Thank you!
Mentioned class and method
createAccount
create new account on server as you can read from the Github code:https://github.com/igniterealtime/Smack/blob/master/smack-extensions/src/main/java/org/jivesoftware/smackx/iqregister/AccountManager.java
Code: