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

Function send

packages/effect/src/unstable/rpc/RpcClient.ts:1147–1157  ·  view source on GitHub ↗
(clientId, request)

Source from the content-addressed store, hash-verified

1145
1146 return {
1147 send(clientId, request) {
1148 if (currentError) {
1149 return Effect.fail(currentError)
1150 }
1151 if (request._tag === "Request") {
1152 requestClientMap.set(request.id, clientId)
1153 }
1154 const encoded = parser.encode(request)
1155 if (encoded === undefined) return Effect.void
1156 return Effect.orDie(write(encoded))
1157 },
1158 supportsAck: true,
1159 supportsTransferables: false
1160 }

Callers 2

getRpcClientMiddlewareFunction · 0.70
onFromClientFunction · 0.70

Calls 7

sendMethod · 0.80
writeFunction · 0.70
setMethod · 0.65
pipeMethod · 0.65
getMethod · 0.65
openUnsafeMethod · 0.65
failMethod · 0.45

Tested by

no test coverage detected