MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / startSse

Function startSse

packages/codex-native-api/src/native_api_server.ts:2994–3001  ·  view source on GitHub ↗
(response: ServerResponse)

Source from the content-addressed store, hash-verified

2992}
2993
2994function startSse(response: ServerResponse): void {
2995 response.writeHead(200, {
2996 'Content-Type': 'text/event-stream; charset=utf-8',
2997 'Cache-Control': 'no-cache, no-transform',
2998 Connection: 'keep-alive',
2999 'X-Accel-Buffering': 'no',
3000 });
3001}
3002
3003function writeSseEvent(response: ServerResponse, payload: JsonRecord): void {
3004 if (response.writableEnded || response.destroyed) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected