MCPcopy Create free account
hub / github.com/TanStack/router / encodeJSONFrame

Function encodeJSONFrame

packages/start-client-core/tests/frame-decoder.test.ts:51–53  ·  view source on GitHub ↗
(json: string)

Source from the content-addressed store, hash-verified

49}
50
51function encodeJSONFrame(json: string): Uint8Array {
52 return encodeFrame(FRAME_TYPE_JSON, 0, new TextEncoder().encode(json))
53}
54
55function encodeChunkFrame(streamId: number, data: Uint8Array): Uint8Array {
56 return encodeFrame(FRAME_TYPE_CHUNK, streamId, data)

Callers 4

startFunction · 0.85
onParseFunction · 0.85
pullFunction · 0.85

Calls 1

encodeFrameFunction · 0.70

Tested by

no test coverage detected