MCPcopy Index your code
hub / github.com/Effect-TS/effect / onClose

Function onClose

packages/platform-node-shared/src/NodeSocket.ts:146–156  ·  view source on GitHub ↗
(hadError: boolean)

Source from the content-addressed store, hash-verified

144 )
145 }
146 function onClose(hadError: boolean) {
147 Deferred.unsafeDone(
148 fiberSet.deferred,
149 Effect.fail(
150 new Socket.SocketCloseError({
151 reason: "Close",
152 code: hadError ? 1006 : 1000
153 })
154 )
155 )
156 }
157 })).pipe(
158 Effect.mapInputContext((input: Context.Context<R>) => Context.merge(openContext, input)),
159 Effect.ensuring(Effect.sync(() => {

Callers

nothing calls this directly

Calls 2

unsafeDoneMethod · 0.80
failMethod · 0.65

Tested by

no test coverage detected