Enable BOSH services in XMPP IOS framework (XMPPFramework) to create chat based app

心不动则不痛 提交于 2019-12-14 00:48:02

问题


I have implemented Chat based application. I can able to do many functionality with https://github.com/robbiehanson/XMPPFramework library. It is very good library. But after some days my server side guys included bash services in server. My server side guys implementing xmpp using Strophe.js. And they are using following code to enable BOSH service while connecting.

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

Now they told me enable BASH service in IOS side also. Now I can not connect to that server. How to include BOSH service in robbiehanson xmpp IOS library (https://github.com/robbiehanson/XMPPFramework)?


回答1:


The iOS xmppFramework does not currently offer support for BOSH. Here's a confirmation: https://github.com/robbiehanson/XMPPFramework/issues/6#issuecomment-54085037

But, your iOS client can still login to the server via the socket connection and your web client can use BOSH. That's your alternative and it should work well.

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

Happy coding :)



来源:https://stackoverflow.com/questions/26689261/enable-bosh-services-in-xmpp-ios-framework-xmppframework-to-create-chat-based

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!