Function: decodeFrame()
decodeFrame(
frame):DecodedFrame
Defined in: packages/aiui-claude-channel/src/frame.ts:188
Parse a binary frame back into its envelope and payload. The returned payload is a subarray view of frame (no copy) — callers that retain it past the current tick should copy it.
Parameters
frame
Uint8Array
Returns
Throws
if the frame is truncated or its header is not valid JSON.