Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

decodeWsFrame.md

24 lines450 Bytes

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