Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ encodeSSEComment
Function
encodeSSEComment
apps/sim/lib/copilot/request/session/sse.ts:9–11 ·
view source on GitHub ↗
(comment: string)
Source
from the content-addressed store, hash-verified
7
}
8
9
export
function
encodeSSEComment(comment: string): Uint8Array {
10
return
encoder.encode(`: ${comment}\n\n`)
11
}
12
13
export
const
SSE_RESPONSE_HEADERS = {
14
...SSE_HEADERS,
Callers
2
startKeepalive
Method · 0.90
enqueueComment
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected