Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
bilalkhan #1
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
Subject: How server can determine a new connection has been requested
I want to implement the multiple connections support on the server, a user can logged in from many devices, on every login of the user should i consider it a new request and create a connection for it.

what is the definition for xmpp server connection, if a client login from chrome and inter explorer, should i consider it two connections and make server connections.


is their any xep available which explain multiple connections?


I know their is a session id which creates on every login, session 1 of user1 can't see the messages of seesion2 of user1, message carbon functionality is their.

When a client logout we get it's connection from server connection and call dispose.

Connection=GetCOnnectionOfBilalFromServerConnection
Connection.dispose() on logout.
This post was edited on 2017-01-16, 13:55 by bilalkhan.
Avatar
bilalkhan #2
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
https://wiki.xmpp.org/web/Jabber_Resources

 i have found the above link have same scenarion, however i want to create a new server connection if a user change it's device.

user1 with andriod, user1 with ios user with web, i can distinguish the user1 from device id, can we  add the resource information in client so on authentication user mention their device id.


Or i can get the device id of the incoming request using agsxmpp?
Avatar
bilalkhan #3
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
_xmppClientConnection.Resource = "web";

i want this information during login it does not work how can i get the above client information at the server side during login
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This gets assigned during resource binding after authentication.
Avatar
bilalkhan #5
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
how to get the value of resourcce
Avatar
Alex #6
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is described here in the RFCs under Resource Binding page 92:
https://tools.ietf.org/html/rfc6120#page-92
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