multiuserchat

How to accept invitation in MUC?

天涯浪子 提交于 2020-02-06 08:36:11
问题 I am developing chat application with xmpp. I have created group using MUC and sent invitation to other user. but i don't know how to accept and decline invitation. here is my code to send invitation : EntityBareJid userInviteJID = JidCreate.entityBareFrom("user2@servicename"); muc2.invite(userInviteJID, "Meet me in this excellent room"); I have tried MultiUserChat.decline(conn, room, inviter.asBareJid()s, "I'm busy right now"); method inside invitationReceived() method. but the problem is

pyxmpp: quick tutorial for creating a muc client?

只愿长相守 提交于 2020-01-12 08:00:34
问题 I'm attempting to write a quick load-test script for our ejabberd cluster that simply logs into a chat room, posts a couple of random messages, then exits. We had attempted this particular test with tsung, but according to the authors, the muc functionality did not make it into this release. pyxmpp seems to have this functionality, but darned if I can figure out how to make it work. Here's hoping someone has a quick explanation of how to build the client and join/post to the muc. Thanks! 回答1:

How to send room configuration form and create persistence rooms from android using smack 4.3.4

旧时模样 提交于 2020-01-11 13:14:30
问题 I am facing problem for create persistence room and MUC, Not able to send room configuration form. Values i send that are not set to form fields and default values are send to server. 回答1: multiUserChatManager = MultiUserChatManager.getInstanceFor(connection); multiUserChat = multiUserChatManager.getMultiUserChat(JidCreate.entityBareFrom(roomJID)); multiUserChat.create(Resourcepart.from(nickname)); Form form = multiUserChat.getConfigurationForm(); Form submitForm = form.createAnswerForm();

How to get openfire chat room messages history

假如想象 提交于 2020-01-05 10:11:10
问题 I use Strophe library to connect to an OpenFire XMPP server. How can I receive the chat room messages history ? var o = {to:'roomName@conference.domain.com/youNick'}; var m = $pres(o); m.c('x', {xmlns : 'http://jabber.org/protocol/muc#user'}, null); connection.send(m.tree()); I get only 25 messages when I join room. How to get past 25 message of the chat room ? 回答1: You should add a <history/> element: https://xmpp.org/extensions/xep-0045.html#enter-managehistory. <x xmlns='http://jabber.org

“MultiUserChat.addInvitationListener” not being called

爱⌒轻易说出口 提交于 2020-01-04 14:19:04
问题 I am working on a GroupChat process. I have successfully sent the invitation and using PSI i have received this invitation. But M unable to invoke my own " MultiUserChat.addInvitationListener ". I have done this many ways but in-vain. Here is one of my attempt. ProviderManager pm = ProviderManager.getInstance(); pm.addExtensionProvider("x", "http://jabber.org/protocol/muc#user", new MUCUserProvider()); MultiUserChat.addInvitationListener(mXmppConnection, MyClass.this); And doing " MyClass

How to send composing / is typing (Chat states) event in Multiuser chat / Group chat & One to One chat in xmpp android?

时光总嘲笑我的痴心妄想 提交于 2020-01-01 03:47:05
问题 I want send composing event in Group (Multiuser) chat in xmpp, I am using asmack library, I have done same functionality with One to One chat. I am using below code: mMessageEventManager = new MessageEventManager(XMPPConnectApplication.getInstance().getXmppConnection()); mMessageEventManager.addMessageEventNotificationListener(new MessageEventNotificationListener() { @Override public void offlineNotification(String arg0, String arg1) { } @Override public void displayedNotification(String arg0

XMPPFramework - How to Create a MultiUserChat Rooms?

我与影子孤独终老i 提交于 2019-12-30 12:52:08
问题 How can I Achieve GroupChat in iPhone using XMPPFramework.I tried fallowing code but room is not created.How can I know whether room is created or not.XMPPRoomDelegate are not called.When Stream disconnected, handleDidLeaveRoom method called.Can any one help me.thanks inadvance #define XMPP_HOSTNAME_2 @"chat.someservername.com" #define XMPP_JID @"venkat@chat.someservername.com" #define XMPP_PASSWORD @"venkat" #define ROOM_JID @"venkat_muc@conference.chat.someservername.com/iMac" - (void

MUC configuration error : Couldn't find a field for the specified variable

 ̄綄美尐妖づ 提交于 2019-12-24 19:45:12
问题 I want to create group chat like whatsapp. i am using MUC service with ejabberd server. I have created group successfully but i unable to add member permanentantly in a group. I have also tried using send invitation and join group but it not work when user is offline. it is autometically remove user from group when it is offline. So i have tried belove code to add member in a group but it gives error : Couldn't find a field for the specified variable. Here is my code : EntityBareJid mucJid =

Implement group chat using ejabberd [closed]

假装没事ソ 提交于 2019-12-23 03:02:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 months ago . I want to implement group chat like What's App MUC(room chat) has some limitations: 1. user can not get the history of which rooms he has joined. 2. if the invited user is not online, then the user can not join the room and get the message. Multi cast XEP-0033, seem good solution

didReceiveInvitation() is not being called in XMPPFramework and Swift 2

血红的双手。 提交于 2019-12-20 04:16:11
问题 I am creating chatting application like Whatsapp . I have successfully write the functionality of Text chat, Image, Audio, Video Transfer. Now I am creating the Multi user chat. After a long R&D I am asking this question. Please tell me what I am doing wrong in my code. I have followed all these tutorials but not luck https://github.com/robbiehanson/XMPPFramework/issues/640 MUC How-to with XMPPFramework Accepting chatroom invitation Ok Below is my Code 1. After setting the STREAM successfully