MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeClientLayer

Function makeClientLayer

packages/platform-node/test/NodeClusterSocket.test.ts:66–77  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

64 )
65
66const makeClientLayer = (port: number) =>
67 SocketRunner.layerClientOnly.pipe(
68 Layer.provide(NodeClusterSocket.layerClientProtocol),
69 Layer.provide(ShardingConfig.layer({
70 runnerAddress: Option.some(RunnerAddress.make("localhost", port)),
71 runnerListenAddress: Option.some(RunnerAddress.make("localhost", port)),
72 entityTerminationTimeout: 0,
73 entityMessagePollInterval: 5000,
74 sendRetryInterval: 100
75 })),
76 Layer.provide(RpcSerialization.layerMsgPack)
77 )
78
79// BigDecimal.normalize creates a circular `normalized` self-reference.
80// When a persisted message is sent with discard: true, the notify path in Runners.makeRpc

Callers 1

Calls 3

pipeMethod · 0.65
provideMethod · 0.65
makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…