MCPcopy
hub / github.com/simstudioai/sim / enqueueComment

Function enqueueComment

apps/sim/app/api/copilot/chat/stream/route.ts:308–318  ·  view source on GitHub ↗
(comment: string)

Source from the content-addressed store, hash-verified

306 }
307
308 const enqueueComment = (comment: string) => {
309 if (controllerClosed) return false
310 try {
311 controller.enqueue(encodeSSEComment(comment))
312 lastWriteTime = Date.now()
313 return true
314 } catch {
315 controllerClosed = true
316 return false
317 }
318 }
319
320 const abortListener = () => {
321 controllerClosed = true

Callers 1

startInnerFunction · 0.85

Calls 2

encodeSSECommentFunction · 0.90
enqueueMethod · 0.65

Tested by

no test coverage detected