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

Function send

packages/rpc/src/RpcServer.ts:1069–1073  ·  view source on GitHub ↗
(clientId, response)

Source from the content-addressed store, hash-verified

1067 return Effect.succeed({
1068 disconnects,
1069 send(clientId, response) {
1070 const client = clients.get(clientId)
1071 if (!client) return Effect.void
1072 return client.write(response)
1073 },
1074 end(clientId) {
1075 const client = clients.get(clientId)
1076 if (!client) return Effect.void

Callers 4

handleEncodeFunction · 0.70
sendRequestDefectFunction · 0.70
sendDefectFunction · 0.70
RpcServer.tsFile · 0.70

Calls 4

encodeMethod · 0.80
getMethod · 0.65
writeMethod · 0.65
offerMethod · 0.65

Tested by

no test coverage detected