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

Function succeed

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

Source from the content-addressed store, hash-verified

396 tls.off("close", onUpgradeClose)
397 }
398 function succeed() {
399 cleanup()
400 upgradeAvailable = false
401 attachReadListeners(tls)
402 resume(Effect.void)
403 }
404 function failUpgrade(cause: unknown) {
405 cleanup()
406 const upgradeError = new Socket.SocketError({

Callers

nothing calls this directly

Calls 3

attachReadListenersFunction · 0.85
cleanupFunction · 0.70
resumeFunction · 0.50

Tested by

no test coverage detected