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

Function onFromServer

packages/effect/src/unstable/rpc/RpcTest.ts:44–46  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

42 let client!: Effect.Success<ReturnType<typeof RpcClient.makeNoSerialization<Rpcs, never, Flatten>>>
43 const server = yield* RpcServer.makeNoSerialization(group, {
44 onFromServer(response) {
45 return client.write(response)
46 }
47 })
48 client = yield* RpcClient.makeNoSerialization(group, {
49 supportsAck: true,

Callers

nothing calls this directly

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected