Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
trw1313 #1
Member since Oct 2009 · 10 posts
Group memberships: Members
Show profile · Link to this post
Subject: Multi Logon, Same ID
I would like to setup an account on my server that many clients can connect as...example "admin"

I would like this account to allow many client applications to connect which would mean I could have
10 client applications all logged on as "admin".   admin@my-server.com

However, now when I do this the 2nd client instance logs in forces the 1st instance to disconnect.

I believe what I want to do is possible using this library.  I do not see anything in the XMPPClientConnection
class that would help me such as a property that says multi logons allowed.

If so, what do I need to do in order to have multiple logons to the same account? 

Thanks for the help.

TRW
Avatar
Alex #2
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
the resource of each connection must be unique. By default the resource is "agsXMPP" which is the reason why you get kicked.

Either generate a random resource for each connection or leave is empty (null) and the server will create a radom unique resource for you.

Alex
Avatar
trw1313 #3
Member since Oct 2009 · 10 posts
Group memberships: Members
Show profile · Link to this post
Subject: Worked
Thanks Alex,  one small change and everything worked like a champ!!
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