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

Function enqueue

packages/start-server-core/src/frame-protocol.ts:118–126  ·  view source on GitHub ↗
(frame: Uint8Array)

Source from the content-addressed store, hash-verified

116
117 // Helper to enqueue a frame, ignoring errors if stream is closed/cancelled
118 const enqueue = (frame: Uint8Array): boolean => {
119 if (cancelled) return false
120 try {
121 controller.enqueue(frame)
122 return true
123 } catch {
124 return false
125 }
126 }
127
128 // Helper to error the output stream (for fatal errors like JSON stream failure)
129 const errorOutput = (error: unknown): void => {

Callers 2

pumpRawStreamFunction · 0.85
pumpJSONFunction · 0.85

Calls 1

enqueueMethod · 0.80

Tested by

no test coverage detected