MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / sendEvent

Function sendEvent

apps/cli/src/http/routes/web/import.ts:118–120  ·  view source on GitHub ↗
(event: string, eventData: unknown)

Source from the content-addressed store, hash-verified

116 })
117
118 function sendEvent(event: string, eventData: unknown) {
119 reply.raw.write(`event: ${event}\ndata: ${JSON.stringify(eventData)}\n\n`)
120 }
121
122 try {
123 const result = await sourceManager.withMaterializedChat(request.params.sourceId, chatId, (manifestPath) =>

Callers 1

registerImportRoutesFunction · 0.85

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected