Not logged in. · Lost password · Register
Forum: MatriX RSS
How to create group chat using matrix xmpp
Avatar
suresh #1
Member since Jan 2015 · 2 posts · Location: India
Group memberships: Members
Show profile · Link to this post
Subject: Group Chat
hi ,

How to create permanent group in xmpp and directly invite the group members.

eg:
 Now i use below code to create/enter room
Create new room

mucManager = new MucManager(xmppClient);
Jid roomJid = groupName + "@conference.serverid"
mucManager.EnterRoom(roomJid, groupName);

Invite
 mucManager.Invite(userdemo@serverid, roomJid);


problem is userdemo need to be online .otherwise userdemo not getting the group invite when he come to online.

1. How to invite directly in MUC. (XEP-0249)(http://www.xmpp.org/extensions/xep-0249.html

2. How to remove userdemo from list

3. How userdemo know the group details eg. group members list,group admin,
Avatar
Alex #2
Member since Feb 2003 · 4308 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by suresh:
How to create permanent group in xmpp and directly invite the group members.

this depends on your server configuration. You make make room persistent by default on the server if you want.
But you also can change the configuration while you create the room.
Here in the blog post you can see an example how to create a room and configure all properties of it.
http://www.ag-software.net/2014/01/21/task-based-asynchron…

Quote by suresh:
1. How to invite directly in MUC. (XEP-0249)(http://www.xmpp.org/extensions/xep-0249.html

there is also MucManager.DirectInvite which allows you to send XEP-0249 invites.

Quote by suresh:
2. How to remove userdemo from list

an invite is just a message which tells the user "please join this room". This are no ACLs. As long as you don't make the room members only everyone can join and leave at any time.
Please read the complete MUC extension to see all the supported features of Multi User Chat which includes also ACLs:
http://xmpp.org/extensions/xep-0045.html

Quote by suresh:
3. How userdemo know the group details eg. group members list,group admin,

can only know when he joins the room and gets all the presences of the other participants.
When you server exposes all partiipants to Service Discovery you can also Disco the room and get the list of participants without joining the room.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS