Strophe.js
    Preparing search index...

    Class StreamManagement

    The XEP-0198 Stream Management engine.

    Hosted by Connection (page) or by the shared-connection worker; fed StanzaViews by a thin per-environment adapter. Emits nonzas through the injected sendRaw function.

    Implements

    Index
    serverSupported: boolean

    Whether the current stream's features advertised . Not persisted.

    • Set the storage key (from the user's bare JID) and load any persisted resumable state. Call before deciding between resume and fresh bind.

      Parameters

      • jid: string

        The user's JID (a full JID is reduced to its bare form).

      Returns void

    • Count an inbound top-level stanza by name. Adapters call this from their dispatch loop for every inbound child element — non-countable names and inactive sessions are no-ops, so no StanzaView needs to be built for the common case.

      Parameters

      • name: string

        The element's local tag name.

      Returns void

    • Send to start a new SM session. Call after resource binding, at the point CONNECTED is emitted. At most one is sent per stream — a second attempt SHOULD get the stream killed by the server (XEP-0198 §3).

      Parameters

      • boundJid: string

        The full JID that was just bound.

      Returns void