normalizeFrame(data: unknown): string | Uint8Array
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.
string | Uint8Array
The normalized payload