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

Function finishSse

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

Source from the content-addressed store, hash-verified

3016}
3017
3018function finishSse(response: ServerResponse): void {
3019 if (response.writableEnded || response.destroyed) {
3020 return;
3021 }
3022 response.end('data: [DONE]\n\n');
3023}
3024
3025function writeJson(response: ServerResponse, status: number, body: JsonRecord): void {
3026 response.writeHead(status, {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected