MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / sse

Function sse

host/network/src/main/state.js:17–22  ·  view source on GitHub ↗
(h)

Source from the content-addressed store, hash-verified

15
16 const allocSse = (es) => { sseSources.push(es); return sseSources.length - 1; };
17 const sse = (h) => {
18 if (h < 0 || h >= sseSources.length || sseSources[h] === null) {
19 throw new Error('invalid sse handle: ' + h);
20 }
21 return sseSources[h];
22 };
23
24 return { requests, sockets, sseSources, allocSocket, socket, allocSse, sse };
25};

Callers 2

networkFunction · 0.85
sse.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected