Subject: Information related to Presence , Presence Manager , Auth , xmppClient_OnIq and xmppClient_OnLogin
Hi,
I have some query related to Chat functionality using MatriX SDK.
1. what is the purpose of Presence and Presence Manager and Presence ? how one should handle presence in server side and client side?
How this Request is fired from Client every time a new request for Roster is made to the server ?
Is is to check each roster Presence status from Server or for any other Reason ?
my client is sending below information to server.
2. What is the Functionality of AuthIq or Auth . Is is for to Check the valied UserName and Password ?
3. What is the Event xmppClient_OnIq and xmppClient_OnLogin is for and when this event will be raised?
xmppClient_OnIq always fire when we request for AuthIq . so if the server returns Error in Type in case of Invalid credentails thats means that the current chat client user is not valid or so ?
Thanks
I have some query related to Chat functionality using MatriX SDK.
1. what is the purpose of Presence and Presence Manager and Presence ? how one should handle presence in server side and client side?
How this Request is fired from Client every time a new request for Roster is made to the server ?
Is is to check each roster Presence status from Server or for any other Reason ?
my client is sending below information to server.
</iq><presence xmlns="jabber:client">
<show>chat</show>
<status>ready for chat</status>
<priority>1</priority>
</presence>
2. What is the Functionality of AuthIq or Auth . Is is for to Check the valied UserName and Password ?
3. What is the Event xmppClient_OnIq and xmppClient_OnLogin is for and when this event will be raised?
xmppClient_OnIq always fire when we request for AuthIq . so if the server returns Error in Type in case of Invalid credentails thats means that the current chat client user is not valid or so ?
AuthIq auth = new AuthIq(IqType.get);
auth.Auth.Password = txtPassword.Text;
auth.Auth.Username = txtUsername.Text;
xmppClient.IqFilter.SendIq(auth, AutResponse);
Thanks