Questions tagged [multiuserchat]

Multi-User Chat (MUC) is an XMPP protocol extension for multi-user text chat, whereby multiple XMPP users can exchange messages in the context of a room or channel, similar to IRC. In addition to standard chatroom features such as room topics and invitations, the protocol defines a strong room control model, including the ability to kick and ban users, to name room moderators and administrators, to require membership or passwords in order to join the room.

Similar to, but less widely used than IRC, Multi-User Chat (MUC) is an XMPP protocol defined by XEP-0045:

This specification defines an XMPP protocol extension for multi-user text chat, whereby multiple XMPP users can exchange messages in the context of a room or channel, similar to Internet Relay Chat (IRC). In addition to standard chatroom features such as room topics and invitations, the protocol defines a strong room control model, including the ability to kick and ban users, to name room moderators and administrators, to require membership or passwords in order to join the room, etc.

A common, open-source implementation of XMPP is the Smack API. For Android, there is also the aSmack API, but this is being merged into Smack to unite the forked APIs.

Usage examples of a MUC can be found here.

204 questions
19
votes
0 answers

WhatsApp like group chat in android using xmpp and asmack

I am developing a clone of WhatsApp for which i need to implement group chat like in WhatsApp. i am using Openfire as a server and Asmack on android end. Now i have implemented group chat following this guide but this is no way like WhatsApp. Users…
Talha Mir
  • 1,228
  • 11
  • 19
10
votes
2 answers

Accepting chatroom invitation

I'm able to create a MUC using XMPPFramework and send user invitation requests to join that room by using the code below. // Creating AppDelegate *dele =(AppDelegate *) [[UIApplication sharedApplication]delegate]; xmppRoom = [[XMPPRoom alloc]…
Vishal Singh
  • 4,400
  • 4
  • 27
  • 43
8
votes
3 answers

XMPP Group Chat Android

I implemented a Group Chat mechanism in my Android where I have created groups and add members through REST API Plugin of Openfire. sending messages to to the same group not delivering messages to all members of the same group. Please see my Error…
Sanat Pandey
  • 4,081
  • 17
  • 75
  • 132
8
votes
1 answer

Discovering members of MUC room as occupant

As an occupant/member, I need to know all the "members" in the room with ejabberd-14.x I followed http://xmpp.org/extensions/xep-0045.html#getmemberlist I got forbidden (401) for following stanze - Admin privilege required
GJain
  • 5,025
  • 6
  • 48
  • 82
6
votes
2 answers

How to retrieve sender name or its JID in multi user chat message with Smack?

i am working on chat app based on XMPP in Android. i have done one to one chat functionality, but having some problem in multi user chat. i have successfully created new chat room, multiple users can join that room. i have also written code for…
Yograj Shinde
  • 839
  • 12
  • 23
6
votes
1 answer

pyxmpp: quick tutorial for creating a muc client?

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…
Lysdexia
  • 94
  • 1
  • 3
6
votes
1 answer

Create Group like WhatsApp, BBM in XMPP with (a)Smack

Can I implement groupchat like WhatsApp or BBM in XMPP Asmack? I'm using Openfire Server. I already implemented the basic multiuserchat in XMPP (http://xmpp.org/extensions/xep-0045.html), but it's not contain all the features that i needed. I need…
6
votes
0 answers

Openfire: Create MUC Room with custom fields

First of all, I'd like to provide some background information: I want to exchange unstructured data between various clients using XMPP. Data sources are supposed to publish their data simply to Mulit-User-Chat rooms (XEP-0045) so that any interested…
cmdaltent
  • 337
  • 2
  • 7
5
votes
2 answers

XMPP - Retrieve last n messages from chat room

Anyone know if there is a way to query the last n messages in a muc in xmpp (specifically ejabberd) without joining the room. Thanks.
fturtle
  • 365
  • 1
  • 5
  • 17
5
votes
3 answers

How to re-request room roster and history from a muc in ejabberd

When a user joins an ejabberd MUC, the server will send a full room roster and chat history to the user. In my web based client I need to persist the room over page reloads. My problem is that I loose al the initial information when the page is…
Ollie Edwards
  • 14,042
  • 7
  • 28
  • 36
5
votes
1 answer

Error while joining MUC room in XMPP(smack)

I am trying to create a multi user chat. I am getting error while joining the room. Method for creating chat room : public void createMultiUserChatRoom(String roomName, String nickName) { // Get the MultiUserChatManager …
Jennifer
  • 351
  • 6
  • 18
5
votes
1 answer

OpenFire - Permanent Group Chat using PubSub

First from this question : Asmack/openfire How do I keep a user permanently in groupchat room I read that I cannot use MUC to keep the user persistent in the group, they'll automatically leave the group and can rejoin after they come online again,…
Niko Adrianus Yuwono
  • 11,012
  • 8
  • 42
  • 64
4
votes
1 answer

Creating Custom Stanza in smack 4.2

How can I sent a custom IQ Stanza using smack 4.2 in android. I tried to convert the following stanza in smack IQ but unsuccessful
K Guru
  • 1,292
  • 2
  • 17
  • 36
4
votes
1 answer

How to add onmessage handler for strophe muc plugin

How to add on-message handler for strophe MUC plugin. Currently i added callback function for join action. Gab.connection.muc.join(room_name+"@muc.162.242.222.249", login_id, function(message){
user1752065
  • 179
  • 9
4
votes
1 answer

How to create a MUC room from php or using direct command with ejabberd

I have an application which needs to register an ejabberd user when the normal registration process takes place. I handled this using the ejabberdctl register command. Similarly, I need to add some users to an MUC group therefore, I need to create a…
SuperNOVA
  • 721
  • 7
  • 15
1
2 3
13 14