ALE-Rainbow / Sharp.Ws.Xmpp

Sharp.Ws.Xmpp has beend forked from pgstath/Sharp.Xmpp and it has been enhanced to support Web Socket.
Other
2 stars 2 forks source link

SendInvite Does not work #6

Open LumiProj opened 4 years ago

LumiProj commented 4 years ago

Hi,

I am using ejabberd at backend , I am able to connect with library and previously I had an issue with StatusChanaged but now I am using socket and able to catch the ConnectionStatus event. BUT i am very disturb and due to lack of documentation I am very frustrated that I am not achieving the results which I expected from this library. As you can I am initializing bunch of events but I am only able to catch Message and StatusChanged event. All other events are not working Is there any sample out there that would help to get complete details how I can use these events.

  var client = new XmppClient("blah.com", "abc", "abc");
        client.UseWebSocket = true;
        client.WebSocketUri = "wss://blah:5443/ws";
        client.ConnectionStatus += Client_ConnectionStatus;
        client.StatusChanged += Client_StatusChanged;
        client.RoomInvitation += Client_RoomInvitation;
        client.RosterUpdated += Client_RosterUpdated;
        client.ConversationManagement += Client_ConversationManagement;
        client.RoomManagement += Client_RoomManagement; 
        client.Message += Client_Message;
        client.GroupInviteReceived += Client_GroupInviteReceived;
        client.ConferenceUpdated += Client_ConferenceUpdated;
        client.GroupManagement += Client_GroupManagement;
        client.ChanneItemManagement += Client_ChanneItemManagement;
        client.Connect();

        client.SendInvite
        (new Sharp.Xmpp.Jid
        ("guest@blah.con"), new Sharp.Xmpp.Jid
        ("data@conference.blah.com"), "Fran");