MCPcopy Index your code
hub / github.com/BingyanStudio/github-analyzer / sendEvent

Function sendEvent

api/src/services/generateReport.ts:550–554  ·  view source on GitHub ↗
(eventType: string, data: any)

Source from the content-addressed store, hash-verified

548 start(controller) {
549 // Helper function to send SSE events
550 const sendEvent = (eventType: string, data: any) => {
551 controller.enqueue(
552 `event: ${eventType}\ndata: ${JSON.stringify(data)}\n\n`
553 );
554 };
555
556 // Self-invoking async function to handle the report generation process
557 (async () => {

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected