Can a client continue to communicate with an XMPP server after sending the unavailable presence?

StackOverflow https://stackoverflow.com/questions/5813285

  •  25-10-2019
  •  | 
  •  

Question

After the client has sent the server and unavailable presence, can it continue to send the server more XML stanzas for it to process, or should the server ignore these XML stanzas? I couldn't find anything relevant in RFC-3921, but then again I've only skimmed it.

Was it helpful?

Solution

Yes, you can continue to send protocol after sending an unavailable presence. For example, you could go back online, you could send IQs to your server (which should continue to route the replies back to you), and you can send confusing messages to others (confusing because they don't have presence from you). Just because you can doesn't mean you SHOULD, though. If you're trying to control the inbound flow of information, consider using XEP-0273: SIFT instead.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top