MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / emit

Function emit

sdk/src/impl/chatgpt-backend-fetch.ts:223–228  ·  view source on GitHub ↗
(
    controller: TransformStreamDefaultController<Uint8Array>,
    chunk: Record<string, unknown>,
  )

Source from the content-addressed store, hash-verified

221 let emittedRole = false
222
223 function emit(
224 controller: TransformStreamDefaultController<Uint8Array>,
225 chunk: Record<string, unknown>,
226 ) {
227 controller.enqueue(encoder.encode(`data: ${JSON.stringify(chunk)}\n\n`))
228 }
229
230 function processEvent(
231 controller: TransformStreamDefaultController<Uint8Array>,

Callers 1

processEventFunction · 0.85

Calls 1

enqueueMethod · 0.80

Tested by

no test coverage detected