MCPcopy
hub / github.com/Effect-TS/effect / onReadyStateChange

Function onReadyStateChange

packages/platform-browser/src/internal/httpClient.ts:182–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 }
181
182 const onReadyStateChange = () => {
183 if (this.source.readyState === 4) {
184 resume(Effect.succeed(this.source.responseText))
185 }
186 }
187 const onError = () => {
188 resume(Effect.fail(this.onError(this.source.statusText)))
189 }

Callers 1

streamFunction · 0.85

Calls 4

encodeMethod · 0.80
singleMethod · 0.65
endMethod · 0.65
resumeFunction · 0.50

Tested by

no test coverage detected