powered by Jive Software

Java - trying to prebind strophe.js using bosh but not able to get the sid and rid…using the smack bosh

Hi

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.connect();

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.

Thanks

Mihir Parekh

1 Like

i am also facing the same problem!!!

1 Like

I have seen several people who have the same problem, but nobody in this community can answer this question. Strange!!!