Chat feature implementation in iOS

╄→尐↘猪︶ㄣ 提交于 2019-12-11 14:08:25

问题


I would like to implement chat functionality in my app. I found XMPPframework which looks like what I am searching for. Since this uses xmpp protocol to run the chat, will this be installed on windows server?

Also the server guys in our team approached me for using of signalr objective c framework which uses websockets. Since server is windows, does I need to go with sigalr objective c framework? Signalr can be found in github.

Thanks


回答1:


The client and server are independent. Don't worry if your client runs on iOS. The server can be implemented in any language, as long as it provides the services defined in the XMPP protocol.

Actually, you don't have to implement the server side yourself. There's already a bunch of server implementations that communicate with the clients through XMPP. The most commonly used one is Openfire.

On the client side, all you need to do is to send XML messages to the server and receive XML messages from the server. And obviously, someone already took care of that. There are XMPP client implementations too. Since I am a Windows Phone developer, I prefer Matrix. It provides simple client classes that communicate with Openfire servers. I'm sure you'll find the iOS equivalence to Matrix.

Good luck on your projects!



来源:https://stackoverflow.com/questions/14580559/chat-feature-implementation-in-ios

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