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

Function onUpgrade

packages/platform/node/src/NodeHttpClient.ts:887–890  ·  view source on GitHub ↗
(response: Http.IncomingMessage, socket: Duplex, head: Buffer)

Source from the content-addressed store, hash-verified

885 nodeRequest.on("response", onResponse)
886
887 function onUpgrade(response: Http.IncomingMessage, socket: Duplex, head: Buffer) {
888 nodeRequest.off("error", onError)
889 resume(Effect.succeed([response, takeOver(socket, head, signal)]))
890 }
891 nodeRequest.on("upgrade", onUpgrade)
892
893 return Effect.sync(() => {

Callers

nothing calls this directly

Calls 3

takeOverFunction · 0.70
resumeFunction · 0.50
succeedMethod · 0.45

Tested by

no test coverage detected