MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _sse_bytes

Function _sse_bytes

deployments/desktop/server.py:35–37  ·  view source on GitHub ↗
(event: str, payload: Dict[str, Any])

Source from the content-addressed store, hash-verified

33 return json.dumps(payload, ensure_ascii=False, indent=2).encode("utf-8")
34
35
36def _sse_bytes(event: str, payload: Dict[str, Any]) -> bytes:
37 data = json.dumps(payload, ensure_ascii=False)
38 return f"event: {event}\ndata: {data}\n\n".encode("utf-8")
39
40

Callers 1

_send_sse_eventMethod · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected