Type Alias RpcMethodMulticast<TArgs, TReturn>

RpcMethodMulticast<TArgs, TReturn>: ((this: Component, ...args: TArgs) => RpcMulticastPromise<TReturn>)

Type helper for multicast RPC scoped to NetRpcScope.Multicast method that enforces:

  • The method must be an instance method (not static) via the this: Component constraint
  • The method must return a Promise that resolves to an array of results from each client that executed the RPC.

Type Parameters

  • TArgs extends any[]
  • TReturn