问题描述
我想在我的应用程序中实现聊天功能.我发现XMPPframework看起来像我在寻找什么.由于此操作使用xmpp协议来运行聊天,因此它将安装在Windows服务器上吗?
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?
我们团队中的服务器人员也联系我,要求使用使用websockets的signalr目标c框架.由于服务器是Windows,我是否需要使用sigalr目标C框架?可以在github中找到 .
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.
谢谢
推荐答案
客户端和服务器是独立的.如果您的客户端运行在iOS上,请不要担心.只要服务器提供XMPP协议中定义的服务,就可以用任何语言实现.
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.
实际上,您不必自己实现服务器端.已经有大量的服务器实现通过XMPP与客户端进行通信.最常用的是 Openfire .
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.
在客户端,您所需要做的就是将XML消息发送到服务器并从服务器接收XML消息.显然,已经有人照顾好了.也有XMPP客户端实现.由于我是Windows Phone开发人员,因此我更喜欢 Matrix .它提供了与Openfire服务器通信的简单客户端类.我敢肯定,您会发现iOS与Matrix相当.
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.
祝您项目顺利!
这篇关于iOS中的聊天功能实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!