Add support for Smack to connect to XMPP servers via HTTP binding.
XEP: http://xmpp.org/extensions/xep-0124.html
No news, sorry. I no longer have a need for this functionality and still have a noticeable lack of time for personal projects. The code for the JBOSH library can be found at:
http://kenai.com/projects/jbosh
or at a fork by another dev who was leveraging this for Android:
If you wnt project administrative or committer rights to the kenai instance, just let me know.
I tried Guenther's implementation. It seems to work with my Smack 3.2.1 client, but I had to do some minor changes:
In the login method, put the authenticated = true BEFORE you load the roster, otherwise it throws IllegalStateException.
Second, in the getRoster() I added:
as it is done in XMPPConnection, since I have to add a RosterListener to the roster before I login. (otherwise I my Roster didn't load properly (with XMPPConnection)).
I ran into the SSL version of a configuraion timing out as well, identical to Marjan's code above. I think I debugged the root cause to org.xlightweb.client.HttpClient
He's throwing an IOException being caught at line 130 in com.kenai.jbosh.XLightWebResponse
The detailMeassage is: ssl connection are not supported (use pool sslContext parameter constructor)
Has this already been solved, or is some other workaround in place? I'm new to all of this so I'm not sure what layer in all of this would be the one to try and implement a work around. Any ideas?
Thanks,
-Kevin
Any news one year after my comment?
Ge0rg's patch for needs to be applied to the BOSHConnection, from SMACK-187, too.