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

Function onUpgradeClose

packages/platform/node-shared/src/NodeSocket.ts:412–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410 resume(Effect.fail(upgradeError))
411 }
412 function onUpgradeClose() {
413 failUpgrade(new Error("socket closed during TLS upgrade"))
414 }
415
416 tls.once(secureEvent, succeed)
417 tls.once("error", failUpgrade)

Callers

nothing calls this directly

Calls 1

failUpgradeFunction · 0.85

Tested by

no test coverage detected