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

Function makeProtocolLayerWithClient

packages/effect/test/rpc/RpcClient.test.ts:29–36  ·  view source on GitHub ↗
(
  serializationLayer: Layer.Layer<RpcSerialization.RpcSerialization>,
  client: HttpClient.HttpClient
)

Source from the content-addressed store, hash-verified

27 )
28
29const makeProtocolLayerWithClient = (
30 serializationLayer: Layer.Layer<RpcSerialization.RpcSerialization>,
31 client: HttpClient.HttpClient
32) =>
33 RpcClient.layerProtocolHttp({ url: "http://localhost/rpc" }).pipe(
34 Layer.provideMerge(serializationLayer),
35 Layer.provideMerge(Layer.succeed(HttpClient.HttpClient, client))
36 )
37
38const makeProtocolLayer = (
39 serializationLayer: Layer.Layer<RpcSerialization.RpcSerialization>,

Callers 2

makeProtocolLayerFunction · 0.85
RpcClient.test.tsFile · 0.85

Calls 2

pipeMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected