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

Function encodeErrorFrame

packages/start-client-core/tests/frame-decoder.test.ts:34–40  ·  view source on GitHub ↗
(streamId: number, message: string)

Source from the content-addressed store, hash-verified

32}
33
34function encodeErrorFrame(streamId: number, message: string): Uint8Array {
35 return encodeFrame(
36 FrameType.ERROR,
37 streamId,
38 new TextEncoder().encode(message),
39 )
40}
41
42describe('frame-decoder', () => {
43 describe('createFrameDecoder', () => {

Callers 1

Calls 1

encodeFrameFunction · 0.70

Tested by

no test coverage detected