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

Function endClient

packages/rpc/src/RpcServer.ts:206–216  ·  view source on GitHub ↗
(client: Client)

Source from the content-addressed store, hash-verified

204 )
205
206 const endClient = (client: Client) => {
207 clients.delete(client.id)
208 const write = options.onFromServer({
209 _tag: "ClientEnd",
210 clientId: client.id
211 })
212 if (isShutdown && clients.size === 0) {
213 return Effect.zipRight(write, shutdownLatch.open)
214 }
215 return write
216 }
217
218 const handleRequest = (
219 requestFiber: Fiber.RuntimeFiber<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