Strophe.js
    Preparing search index...

    Function peekElement

    • Extract a StanzaView from a raw websocket frame by inspecting its opening tag. Namespace prefixes are stripped from the tag name and attribute values are XML-unescaped; the frame itself becomes the view's serialized payload.

      Parameters

      • frame: string

        The raw frame string.

      Returns StanzaView

      The view, or null if the frame doesn't start with a parseable tag.