MCPcopy
hub / github.com/simstudioai/sim / sendSuccess

Function sendSuccess

apps/realtime/src/routes/http.ts:44–47  ·  view source on GitHub ↗
(res: ServerResponse)

Source from the content-addressed store, hash-verified

42}
43
44function sendSuccess(res: ServerResponse): void {
45 res.writeHead(200, { 'Content-Type': 'application/json' })
46 res.end(JSON.stringify({ success: true }))
47}
48
49function sendError(res: ServerResponse, message: string, status = 500): void {
50 res.writeHead(status, { 'Content-Type': 'application/json' })

Callers 1

createHttpHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected