How to be notified about resource conflicts

Asked by flipmokid

Hi

Is there anyway in code to be notified if your session is terminated due to another account signing in with the same username and resource?

I'd like to add this functionality to my code but I am not sure how to do it. The XMPP RFCs say that if the server ends my session because of this I will receive:

<stream:error>
  <conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
</stream:error>
</stream:stream>

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
SamePlace Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Massimiliano Mirra (bard-hyperstruct) said :
#1

At the moment there isn't a way to be notified. When are you encountering this issue? It should be a pretty rare case, especially with most servers now binding unique resources to clients...

Can you help with this problem?

Provide an answer of your own, or ask flipmokid for more information if necessary.

To post a message you must log in.