Expand description
§Resilient stanza stream
This module provides the StanzaStream, which is the next level up from
the low-level XmlStream.
The stanza stream knows about XMPP and it most importantly knows how to fix a broken connection with a reconnect and how to do this smoothly using XEP-0198 (Stream Management). XEP-0198 is only used if the peer supports it. If the peer does not support XEP-0198, automatic reconnects are still done, but with more undetectable data loss.
The main API entrypoint for the stanza stream is, unsurprisingly,
StanzaStream.
Structs§
- Connection
- Underlying connection for a
StanzaStream. - Stanza
Stream - Frontend interface to a reliable, always-online stanza stream.
- Stanza
Token - Track stanza transmission through the
StanzaStreamup to the peer.
Enums§
- Event
- Event emitted by the
StanzaStream. - Stanza
Stage - The five stages of stanza transmission.
- Stanza
State - State of a stanza in transit to the peer.
- Stream
Event - Event informing about the change of the
StanzaStream’s status.
Type Aliases§
- Xmpp
Stream - Convenience alias for
XmlStreamswhich may be used withStanzaStream.