MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / sseWrite

Function sseWrite

yaml-flow-editor/vite.config.ts:55–58  ·  view source on GitHub ↗
(res: ServerResponse, event: string, data: unknown)

Source from the content-addressed store, hash-verified

53}
54
55function sseWrite(res: ServerResponse, event: string, data: unknown) {
56 res.write(`event: ${event}\n`)
57 res.write(`data: ${JSON.stringify(data)}\n\n`)
58}
59
60function runAgentApiPlugin(): Plugin {
61 const runs = new Map<string, RunInfo>()

Callers 3

appendLogFunction · 0.85
broadcastStatusFunction · 0.85
configureServerFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected