BOSH connection

Krystian Wojcicki
Added over 2 years ago

I am trying to use the smack bosh library to connect to my Tigase server. But I cant seem to get it to work.

My java code is the following:

@ BOSHConfiguration conf = BOSHConfiguration.builder().setUsernameAndPassword("admin", "tigase")




XMPPBOSHConnection connection;

    connection = new XMPPBOSHConnection(conf);@

After seconding the second message my connection gets timed out. Is there a setting I need to set to enable BOSH or something else i am missing?

06:21:13 PM SENT (0):

06:21:13 PM RECV (0):

06:21:23 PM SENT (0):

Replies (2)

Added by Krystian Wojcicki over 2 years ago

I solved the issue by using the tigase JaXMPP library :)

Added by lin jiafu over 1 year ago

could you share you code, thanks!