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

Function makeClient

packages/effect/src/unstable/cluster/Sharding.ts:1477–1481  ·  view source on GitHub ↗
(entity: Entity<Type, Rpcs>)

Source from the content-addressed store, hash-verified

1475 )
1476
1477 const makeClient = <Type extends string, Rpcs extends Rpc.Any>(entity: Entity<Type, Rpcs>): Effect.Effect<
1478 (
1479 entityId: string
1480 ) => RpcClient.RpcClient.From<Rpcs, MailboxFull | AlreadyProcessingMessage | EntityNotAssignedToRunner>
1481 > => clients.get(entity) as any
1482
1483 const clientRespondDiscard = (_reply: Reply.Reply<any>) => Effect.void
1484

Callers 1

makeFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected