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

Function endClient

packages/effect/src/unstable/rpc/RpcServer.ts:222–232  ·  view source on GitHub ↗
(client: Client)

Source from the content-addressed store, hash-verified

220 )
221
222 const endClient = (client: Client) => {
223 clients.delete(client.id)
224 const write = options.onFromServer({
225 _tag: "ClientEnd",
226 clientId: client.id
227 })
228 if (isShutdown && clients.size === 0) {
229 return Effect.andThen(write, shutdownLatch.open)
230 }
231 return write
232 }
233
234 const handleRequest = (
235 requestFiber: Fiber.Fiber<any, any>,

Callers 4

RpcServer.tsFile · 0.85
writeFunction · 0.85
handleRequestFunction · 0.85
sendDefectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected