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

File sse.js

host/network/src/main/sse.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/* Server-Sent Events, push-event pattern (one-way streaming, native browser `EventSource`). */
2
3export default ({ sseSources, allocSse, sse }, { pushEvent }) => ({
4 /* `sse_open(url, msg, options_json?)` -> handle. `options_json` accepts `{ withCredentials: bool }`. Every event (open/message/error) arrives via `receive()` tagged `msg`. */

Callers

nothing calls this directly

Calls 4

allocSseFunction · 0.85
sseFunction · 0.85
pushEventFunction · 0.50
parseMethod · 0.45

Tested by

no test coverage detected