MCPcopy Create free account
hub / github.com/Effect-TS/effect / reset

Function reset

packages/experimental/src/Sse.ts:169–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 return { feed, reset }
168
169 function reset(): void {
170 isFirstChunk = true
171 buffer = ""
172 startingPosition = 0
173 startingFieldLength = -1
174
175 eventId = undefined
176 eventName = undefined
177 data = ""
178 }
179
180 function feed(chunk: string): SseError | undefined {
181 buffer = buffer ? buffer + chunk : chunk

Callers 2

makeParserFunction · 0.70
feedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected