Click here to Skip to main content
16,019,764 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Here I'm using COMET for chatting system but I get problem, when I want to get a online friend where the friend is already online.
I use this code for when user log in the COMET and that user have unique public token and private token no.
Dim manager As CometClientManager = ChatChannelHandler.ClientManager
       'log in if not already logged
       If Not manager.ClientExists(publicToken) Then
           manager.InitializeClient(publicToken, privateToken)
       End If


And get info about who online for that I use this below code
'Here the check friend is online of not
If manager.GetClientByPublicToken(strFriendId) IsNot Nothing Then

''add list of friend if online

End if


Thanks and Regards.

*** Update ***
Suppose A and B is friend. A and B is online. when A is open a chat window it showing his friend B. after I refresh a A chat window it sometime show B on line and some time it show offline. Where the B is already online. so why B user showing sometime online and some time offline.
Posted
Updated 12-Apr-12 3:13am
v3
Comments
Kschuler 11-Apr-12 16:06pm    
Please post more information about your issue. Is your code just not working? Or is it giving an error message? If so, what is the error?
raviprajapat 11-Apr-12 16:23pm    
No! its not give any error sometime this code give user online list or some time is not.
Kschuler 11-Apr-12 16:25pm    
So it's working? Then what is your question?
raviprajapat 12-Apr-12 6:07am    
Suppose A and B is friend. A and B is online. when A is open a chat window it showing his friend B. after I refresh a A chat window it sometime show B on line and some time it show offline. Where the B is already online. so why B user showing sometime online and some time offline.

1 solution

I assume you're using CometChat, in which case, you'll have to post your question here[^]. It is exteremly unlikely anyone who has used this ssytem is ever going to see your question here.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900