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

Class Echo

packages/effect/test/ui/UiRpc.test.ts:129–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 it.effect("a flat client receives the payload and the request's headers, ignoring a reused stream option", () => {
128 class Flat extends Context.Service<Flat, RpcClient.RpcClient.Flat<TodoRpcs>>()("Flat") {}
129 class Echo extends UiRpc.QueryService<Echo>()("Echo", {
130 group: TodoRpcs,
131 client: Flat,
132 tag: "Echo",
133 staleTime: Infinity
134 }) {}
135 // A reused options object can carry `stream` past the types.
136 const options = { group: TodoRpcs, client: Flat, tag: "Rename", stream: true } as const
137 class Rename extends UiRpc.CommandService<Rename>()("todos/Rename", {

Callers 1

Runtime.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected