Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ normalizeSseLine
Function
normalizeSseLine
apps/sim/lib/copilot/request/go/parser.ts:13–15 ·
view source on GitHub ↗
(line: string)
Source
from the content-addressed store, hash-verified
11
}
12
13
function
normalizeSseLine(line: string): string {
14
return
line.endsWith(
'\r'
) ? line.slice(0, -1) : line
15
}
16
17
/**
18
* Processes an SSE stream by calling onEvent
for
each parsed event.
Callers
1
processSSEStream
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected