edgeport - v1.0.6
    Preparing search index...

    Class XmlStreamReader

    Incrementally parses an XMPP byte stream into structural StreamEvents.

    Wraps a FramedReader and pulls one tag at a time (reading up to each >), tracking element depth. The stream root is reported once as an open event and never pushed onto the stack, so each direct child of the root is emitted as a complete element event the moment it closes; the root's own close is a close event. Text between top-level stanzas (whitespace keep-alives) is ignored. Comments, the XML declaration, and processing instructions are skipped; CDATA sections contribute their literal contents as text.

    1.0.4

    Index
    • Reads the next structural event, or null once the underlying stream ends.

      Parameters

      • OptionaltimeoutMs: number

        Optional per-read deadline.

      Returns Promise<StreamEvent | null>

      The next StreamEvent, or null at end of stream.

      If a closing tag has no matching open.

      If timeoutMs elapses before a full tag arrives.