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

Function makeProtocolLayerWithClient

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

Source from the content-addressed store, hash-verified

113 )
114
115const makeProtocolLayerWithClient = (
116 serializationLayer: Layer.Layer<RpcSerialization.RpcSerialization>,
117 client: HttpClient.HttpClient
118) =>
119 RpcClient.layerProtocolHttp({ url: "http://localhost/rpc" }).pipe(
120 Layer.provideMerge(serializationLayer),
121 Layer.provideMerge(Layer.succeed(HttpClient.HttpClient, client))
122 )
123
124const makeProtocolLayer = (
125 serializationLayer: Layer.Layer<RpcSerialization.RpcSerialization>,

Callers 3

makeProtocolLayerFunction · 0.85
RpcClient.test.tsFile · 0.85
makeUnbatchedFunction · 0.85

Calls 2

pipeMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected