XMPPFramework-如何创建群聊室? [英] XMPPFramework - How to create a group chat room?

查看:95
本文介绍了XMPPFramework-如何创建群聊室?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于一对一聊天的应用程序.现在,我需要实现群聊.我知道XMPPFramework是可能的,并且有一个名为XMPPRoom的类,我们可以使用它来创建房间或加入房间.但是我无法在我的项目中实现.

I have an application which I am using for one-to-one chat. Now I need to implement group chat. I know it is possible with XMPPFramework and there is a class called XMPPRoom which we can use to create a room or join a room. But I am unable to implement that in my project.

任何人都可以向我提供一些想法,建议,并在可能的情况下提供示例应用程序. 在此先感谢:)

Can anyone please provide me some ideas, suggestions and if possible a sample application. Thanks in advance :)

推荐答案

在这里,您有一个允许连接到房间的脚本

here you have a script that allows to connect to a room

[xmppRoom activate:[self xmppStream]]; 
[xmppRoom createOrJoinRoom];

为此,您应该有权访问xmppStream.

In order to do this you should have access to the xmppStream.

这篇关于XMPPFramework-如何创建群聊室?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆