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

Function encodeJSONFrame

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

Source from the content-addressed store, hash-verified

20}
21
22function encodeJSONFrame(json: string): Uint8Array {
23 return encodeFrame(FrameType.JSON, 0, new TextEncoder().encode(json))
24}
25
26function encodeChunkFrame(streamId: number, data: Uint8Array): Uint8Array {
27 return encodeFrame(FrameType.CHUNK, streamId, data)

Callers 1

Calls 1

encodeFrameFunction · 0.70

Tested by

no test coverage detected