Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
abhy #1
Member since Jun 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Get list of online User- problem with asp.net
I want to get list of online user.
So I study agsxmpp  mini-client example.

According to my understanding:

->3 users already online
->4th user logged in(above 3 user already added in his roster list)
->after 4th user log in successfully , OnPresence event fire 3 times with PresenceType.available for above users and I add this user in my listbox.

this works fine with my windows base application but not with asp.net application.
OnPresence event not firing.
Please note if any user's presence status change, this event fire properly.


Please let me what is the issue.
is there any AD-HOC command to get list of online user?
This post was edited on 2015-07-15, 13:28 by abhy.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I assume you have no realtime channel in your ASP.NET software.

Have you looked at this post?
http://www.ag-software.net/2012/08/20/web-clients-with-mat…

And the MatriX + SignalR example from here?
https://gitlab.com/matrix-xmpp/samples/tree/master/csharp/…

Alex
Avatar
abhy #3
Member since Jun 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

Thank you for quick reply.

our requirement web to web and web to mobile chat. 
for web to web we already implement SignalR.
for web to mobile we use openfire+agsxmpp+SignalR and smack API for android.

As per you suggested post,I already try MatriX + SignalR and I don't face any issue.
but I am looking for xmpp library with GPL license like agsxmpp.

currently I am maintaining static list for online user and expose to android via webservice.
So I am trying to get more optimize solution for this.

Please let me know if you found any alternative solution.
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you can easily replace MatriX with agsXMPP yourself in the WebClient  example if you want to stick with agsXMPP.
The software architecture is the same, doesn't matter which library you use.
Avatar
abhy #5
Member since Jun 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
Very good idea.

I will try this,ones done I will update you.

Thank you.
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: agsXMPP RSS