MCPcopy Create free account
hub / github.com/Hello-Application-XH/HelloGML / dispatch

Function dispatch

src/sse.ts:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 let eventData = "";
14
15 function dispatch() {
16 if (eventData !== "" || eventType !== "") {
17 onEvent({
18 type: eventType || "message",
19 data: eventData,
20 });
21 eventType = "";
22 eventData = "";
23 }
24 }
25
26 return {
27 feed(chunk: string) {

Callers 1

feedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected