MCPcopy Create free account
hub / github.com/Hello-Application-XH/HelloGML / safeEnqueue

Function safeEnqueue

src/adapters.ts:118–120  ·  view source on GitHub ↗
(data: Uint8Array)

Source from the content-addressed store, hash-verified

116 let streamClosed = false;
117
118 const safeEnqueue = (data: Uint8Array) => {
119 if (!streamClosed) controller.enqueue(data);
120 };
121
122 const sendMessageStart = () => {
123 safeEnqueue(encoder.encode(`event: message_start\ndata: ${JSON.stringify({

Callers 8

sendMessageStartFunction · 0.85
sendTextBlockStartFunction · 0.85
sendTextDeltaFunction · 0.85
sendTextBlockStopFunction · 0.85
sendToolBlockStartFunction · 0.85
sendToolDeltaFunction · 0.85
sendToolBlockStopFunction · 0.85
sendMessageStopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected