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

Function reset

packages/effect/src/encoding/Sse.ts:300–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298 return { feed, reset }
299
300 function reset(): void {
301 generation++
302 isFirstChunk = true
303 pending = []
304 pendingLength = 0
305 discardTrailingNewline = false
306
307 lastEventId = undefined
308 eventName = undefined
309 data = ""
310 }
311
312 function feed(chunk: string): SseError | undefined {
313 // Empty chunks must not consume the leading BOM check below

Callers 2

makeParserFunction · 0.70
feedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected