Chamath
Chamath

Reputation: 249

Creating MUC using smack

I'm trying to create a multi-user chat in XMPP and have some confusions.

MultiUserChat muc = new MultiUserChat(conn1, "[email protected]");
muc.create("testbot");
muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));

This is the basic code I found on http://www.igniterealtime.org/builds/smack/docs/latest/documentation/extensions/muc.html

Here what is "[email protected]" and "testbot"? What is the difference between those?

Upvotes: 2

Views: 3393

Answers (1)

Flow
Flow

Reputation: 24053

[email protected] is the MUC room (or the MUC address if you want). Looking at the javadoc for MulitUserChat.create(String nickname):

Creates the room according to some default configuration,
...
Parameters:
nickname - the nickname to use.

So you are joining [email protected] with the nickname "testbot"

Upvotes: 2

Related Questions