Strophe.js
    Preparing search index...
    • Remove the from attribute from a serialized stanza's root element, so a re-sent stanza cannot carry a stale resource after a failed resumption. Only the root opening tag is touched; nested from attributes (forwarded stanzas, MUC addresses) are preserved. The server stamps the authoritative c2s from. DOM-free string surgery, mirroring stampDelay.

      Parameters

      • serialized: string

        The serialized stanza.

      Returns string

      The stanza with the root from removed (unchanged if none).