MCPcopy Index your code
hub / github.com/TanStack/router / encodeJSONFrame

Function encodeJSONFrame

packages/start-server-core/src/frame-protocol.ts:55–57  ·  view source on GitHub ↗
(json: string)

Source from the content-addressed store, hash-verified

53 * Encodes a JSON frame (type 0, streamId 0).
54 */
55export function encodeJSONFrame(json: string): Uint8Array {
56 return encodeFrame(FrameType.JSON, 0, textEncoder.encode(json))
57}
58
59/**
60 * Encodes a raw stream chunk frame.

Callers 2

pumpJSONFunction · 0.70

Calls 1

encodeFrameFunction · 0.70

Tested by

no test coverage detected