Home > @esengine/ecs-framework-monorepo > RpcCallProxy > call
RpcCallProxy.call() method
发起RPC调用
Signature:
typescript
call<TArgs extends readonly unknown[], TReturn>(methodName: string, args: TArgs, options?: Partial<RpcOptions>, targetId?: string): Promise<TReturn>;
Parameters
Parameter | Type | Description |
---|---|---|
methodName | string | |
args | TArgs | |
options | Partial<RpcOptions> | (Optional) |
targetId | string | (Optional) |
Returns:
Promise<TReturn>