Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Work-Fisher/code-claw
/ writeSse
Function
writeSse
tools/mock-openai/server.mjs:22–24 ·
view source on GitHub ↗
(res, data)
Source
from the content-addressed store, hash-verified
20
}
21
22
function
writeSse(res, data) {
23
res.write(`data: ${JSON.stringify(data)}\n\n`)
24
}
25
26
function
lastUserMessage(messages = []) {
27
for
(
let
i = messages.length - 1; i >= 0; i -= 1) {
Callers
1
server.mjs
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected