Chapter 7. Multi-Party Interactions
Starting the Party
Instant messaging as we’ve explored it to this point is a one-to-one interaction. But what if we want to communicate among multiple people, bots, or other entities at the same time? It would be nice if XMPP technologies included a real-time counterpart to email discussion lists, web forums, and other multi-party interactions. This feature would be similar to Internet Relay Chat (IRC), providing channels or rooms where people could exchange messages and see who else is present. Well, you’re in luck, because XMPP includes just such a feature! The first iteration of this technology was called groupchat, while the more modern iteration is called Multi-User Chat (MUC) XEP-0045.
The basic idea behind MUC is that people can join a room and send messages that are delivered to all the other participants. Thus the room acts as a kind of message “reflector” or “multiplier” (one incoming message is multiplied into many outgoing messages). You can see a typical interface for such a groupchat in an IM client in Figure 7-1.

Let’s go over a few of the features:
Messages are shared with all the participants (as we’ll see, you can also send private messages to specific participants).
There is a “room roster” of all the participants.
The participants are identified by nicknames, not ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access