TAKPacket-SDK — TypeScript - v0.7.0
    Preparing search index...

    Function extractRawDetailBytes

    • Extract the inner bytes of the <detail> element from a CoT XML event, exactly as they appear in the source — no XML normalization, no re-escaping. Useful for callers that want to build a raw_detail fallback packet alongside the typed packet.

      Returns an empty Buffer for events with a self-closing <detail/> or no <detail> at all. Receivers rehydrate the full event by wrapping these bytes in <detail>…</detail>, so a byte-for-byte extraction is required to keep the round trip loss-free.

      Parameters

      • cotXml: string

      Returns Buffer