Can we defer a response to an XMPP subscription?

I use PacketListener to receive XMPP packets.

If I get the following:

<presence from=" jeanne@belle.com " to=" betty@belle.com " type="subscribe"/> 

Is an XMPP server waiting for a response right away?

  • Motivation . I want to cache all of these subscription requests and allow the recipient to selectively accept / DENY (facebook invitations).
  • Is there an API in which I can request all subscription requests from openfire?
+4
source share
1 answer

You do not need to answer immediately or even in this session; the server saves the fact that you have a pending incoming subscription, and will re-inform you of the upcoming subscription every time you log in. Therefore, you do not need to request a list either.

+5
source

All Articles