XMPPTCPConnection comes with support for Stream Management (SM).
XEP related: XEP-0198
Known interoperability issues
- SM resumption failes on prosody when compression in sync flush mode is used with prosody. See Prosody issue #433.
Enabling stream management
Getting notifications about acknowledges stanzas
Requisting stanza acknowledgements from the server
By using predicates
Enable stream resumption