Setu-TS
    Preparing search index...

    Function normalizeFrame

    • Normalizes an inbound frame payload to the framework's string | Uint8Array.

      Binary frames arrive as ArrayBuffer on Deno and Workers and may arrive as a typed-array view elsewhere; both become a Uint8Array view without copying. Anything else is stringified so a handler never receives an unusable value.

      Parameters

      • data: unknown

        The raw event payload

      Returns string | Uint8Array<ArrayBufferLike>

      The normalized payload

      0.2.0