Enable BOSH services in the XMPP IOS framework (XMPPFramework) to create a chat application

I applied a chat based application. I can do many functions using the https://github.com/robbiehanson/XMPPFramework library. This is a very good library. But after a few days, my server guys included bash services in the server. Server-side guys implementing xmpp using Strophe.js. And they use the following code to enable the BOSH service when connected.

BOSH_SERVICE = "http://host.com:5280/http-bind"; new Strophe.Connection(BOSH_SERVICE); 

Now they told me to enable the bash service on the iOS side. Now I can not connect to this server. How to enable BOSH service in robbiehanson xmpp iOS library ( https://github.com/robbiehanson/XMPPFramework )?

+8
ios xmppframework
source share
1 answer

IOS xmppFramework does not currently offer support for BOSH. Here is the confirmation: https://github.com/robbiehanson/XMPPFramework/issues/6#issuecomment-54085037

But your iOS client can still log into the server through a socket connection, and your web client can use BOSH. This is your alternative, and it should work well.

If you really want to create your own iOS BOSH implementation, take a look at XMPPTransports as a starting point.

Happy coding :)

+2
source share

All Articles