I'm trying to do prebind using Jbosh (smack bosh) to connect with Openfire
server. However I dont know how to get the RID and SID value.
I have implemented this code:
BOSHConfiguration config = new BOSHConfiguration(false, "127.0.0.1", 7070, "/http-bind/", "your.domain.com", "xmpp:127.0.0.1:5222");
//create a connection
BOSHConnection connection = new BOSHConnection(config);
connection.login(userName, password, resource);
using following library
But i can not find anywhere how can i get sid and rid from the Bosh connection so i can attach it in the Strophe at client side.
Can anyone help me here ? I know this is very old question but i did not find anywhere its solution.