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

Function makeClient

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

Source from the content-addressed store, hash-verified

1378 )
1379
1380 const makeClient = <Type extends string, Rpcs extends Rpc.Any>(entity: Entity<Type, Rpcs>): Effect.Effect<
1381 (
1382 entityId: string
1383 ) => RpcClient.RpcClient.From<Rpcs, MailboxFull | AlreadyProcessingMessage>
1384 > => clients.get(entity) as any
1385
1386 const clientRespondDiscard = (_reply: Reply.Reply<any>) => Effect.void
1387

Callers 3

scheduleFunction · 0.70
Entity.test.tsFile · 0.50
Sharding.test.tsFile · 0.50

Calls 1

getMethod · 0.65

Tested by

no test coverage detected