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
4
votes
0 answers

ejabberd MUC message history

I'm using ejabberd XMPP server for a chat client, which also has a group-chat function. My problem is, that when a new user joins a group room, he only gets the first 20 messages from the room, although the history_size is set to 200(for now). On…
Hampel Előd
  • 405
  • 2
  • 8
  • 19
4
votes
1 answer

Get members nickname of MUC Room

Is there a way to get all nicknames of a MUC Room with an ejabberd server? I'm trying with:
3
votes
2 answers

Ejabberd MucSub: When a member sends a presence unavailable, the service does not respond

I'm working on persistent group conversations with Ejabberd 19.09 and mucsub. When a member of a group sends a presence unavailable, sometimes the server does not respond at all. If we repeat the same test after sending a presence available just…
Yakko Olè
  • 71
  • 1
  • 5
3
votes
1 answer

Get list of subscribed group by user using ejabberd API

I am currently developing chat system for our application using ejabberd API. I am having a problem on how to retrieve a list of subscribed group by username. I only can retrieve a list of groups that user occupied, but not subscribed using…
3
votes
1 answer

Sending messages to unknown users in XMPP MultiUserChat with OMEMO encryption

I'm trying to build a MUC platform with OMEMO encryption to be used on an Android app. I'm using Ejabberd (v17.11) and Smack library (v4.2.1). MUC rooms are persistent and they allow_subscription for Muc/Sub support, for offline messages. When a…
JustADeveloper
  • 193
  • 1
  • 9
3
votes
3 answers

How to create and join group in Android XMPP Multi User Chat using Smack

I am trying to make Multi User Chat for my application. I had done the coding for single user communication and it works fine. I am unable to create or join group in multi user chat. Below is my code. public class MyXMPP { public static boolean…
Ganesh S
  • 31
  • 2
  • 6
3
votes
1 answer

What is the max number of users per room on ejabberd?

We are using ejabberd_16.01-0_amd64.deb and we want to set max number of users per room to 10000. According to doc: (https://docs.ejabberd.im/admin/configuration/#modmuc) max_users: Number: This option defines at the service level, the maximum…
3
votes
3 answers

smack presence listener in multi user chat

smack presence listener in multi user chat not getting called. Used Smack Api to login and then added roster.addRosterListener(mRoasterListener); but could not get any success to listen when presence of other user of the chat room changes. I tried…
Abhishek Jha
  • 167
  • 4
  • 15
3
votes
1 answer

Millions of private MUC rooms or dynamic XEP-0033 conversations in ejabberd: what is the best?

Needs I have the following scenario: ~100 thousand players 50 admins Each player may have 1:1 conversations with each admin; a player may even have 1:1 conversations with all admins at the same time in separate conversations. But at any time the…
3
votes
1 answer

How to get offline users in a chat room in ejabberd

We have setup ejabberd on an Ubuntu server and we want to fetch all offline users in a room to send push notification. How we can get them from database? What will be configuration for it?
3
votes
3 answers

Does ejabberd support storing muc room information in MySQL database?

I was trying ejabberd (the latest version on the ProcessOne site) on Ubuntu Linux and configured it to store data in a MySQL database. When I add users I can see them in the users table but nothing about muc rooms appears in any of the tables.…
musimbate
  • 347
  • 6
  • 25
3
votes
4 answers

how to create persistent muc room in smack 4.1 beta2

migrated from asmack to smack 4.1 beta2. The muc rooms created are no longer persistent. MultiUserChatManager mucm=MultiUserChatManager.getInstanceFor(connection); muc=mucm.getMultiUserChat(groupid+"@conference.localhost"); DiscussionHistory…
Vignesh
  • 215
  • 3
  • 10
3
votes
3 answers

Smack - How to read a MultiUserChat's configuration?

I tried to create a multiuserchat with Java. I'm using smack library. Here is my code to create multiuserchat: MultiUserChat muc = new MultiUserChat(connection, "roomname@somehost"); muc.create("mynickname"); Form form =…
Amri Shodiq
  • 51
  • 1
  • 4
3
votes
2 answers

Leave group chat, and get removed from member list

I am working on the chat application. I want to implement the group user chat and I have successfully done that. Now I want toad the functionality by which user can leave the group. I found leave the group but it seems like it's just making user…
Satish
  • 1,012
  • 2
  • 15
  • 32
3
votes
1 answer

Access muc roster from an ejabberd module (disco_items?)

I'm building an ejabberd module to send carbon copies of messages to an external RESTful API. Everything works okay, and requests to that API are sending POST params with Sender, Recipient and the message Body. I'm triggering the user_send_packet…
1
2
3
13 14