Create User Group using agsxmpp c#

739 Views Asked by At

I'm using agsxmpp SDK for interacting with openfire server. I'm trying to create a User Group using agsxmpp sdk but cannot really find any documentation about how to do that.

Can any provide any link or code sample about how to got about creating a user group and adding a user to it.

Any help would be appreciated

1

There are 1 best solutions below

1
On

There is no group concept in agsxmpp.Instead you can join a room with specific service like roomname@conference.(server address).you can simply add a service using Openfire.Here is a code that can help you

/////code to be part of a room

var input = new frmInputBox("Enter your Nickname for the chatroom", "Nickname", "Nickname");


        if (input.ShowDialog() == DialogResult.OK)

        {
            // string nickname = "shan";

            // string j = "";

            string Nickname = input.Result;

            input = new frmInputBox("Enter the Jid of the room to join (e.g [email protected])", "Room");

          if (input.ShowDialog() == DialogResult.OK)


            {

                Jid jid = new Jid((string)node.Tag);
                string nickname = input.Result;
                frmGroupChat gc = new frmGroupChat(this.XmppCon, jid, nickname);
                gc.Show(); }}