0
Fork 0
mirror of https://github.com/TanStack/ai.git synced 2026-11-16 19:38:41 +00:00
ai/docs/reference/functions/decodeWsFrame.md
github-actions[bot] f4f32bdcc2
docs: regenerate API documentation (#1195)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-22 08:16:20 +00:00

566 B

id title
decodeWsFrame decodeWsFrame

Function: decodeWsFrame()

function decodeWsFrame(data): InboundFrame;

Defined in: packages/ai/src/stream-to-websocket.ts:48

Decode one client→server frame. An { type: 'abort', runId } object is a control frame; anything else is treated as a RunAgentInput and validated downstream by chatParamsFromRequestBody.

Parameters

data

string

Returns

InboundFrame