effect-io-ai

Package: @effect/cluster
Module: Entity

Entity.fromRpcGroup

Creates a new Entity of the specified type which will accept messages that adhere to the provided RpcGroup.

Signature

declare const fromRpcGroup: <const Type extends string, Rpcs extends Rpc.Any>(type: Type, protocol: RpcGroup.RpcGroup<Rpcs>) => Entity<Type, Rpcs>

Source

Since v1.0.0