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

Function end

packages/platform/node-shared/src/NodeSocket.ts:245–248  ·  view source on GitHub ↗
(err: Socket.SocketError)

Source from the content-addressed store, hash-verified

243 }
244 // Normal EOF: already consumed bytes are still delivered before the error.
245 function end(err: Socket.SocketError) {
246 error ??= err
247 drain()
248 }
249 // Teardown or failure: consumed bytes are discarded.
250 function close(err: Socket.SocketError) {
251 error ??= err

Callers 2

onEndFunction · 0.70
onCloseFunction · 0.70

Calls 1

drainFunction · 0.70

Tested by

no test coverage detected