Home > SYS_MessageBus > rpcCall
SYS_MessageBus.rpcCall() method
私有消息总线:调用 RPC 服务
Signature
typescript
public rpcCall(topic: string, message?: any, timeout?: number): Promise<any>;1
Parameters
Parameter | Type | Description |
|---|---|---|
topic | string | 主题 |
message | any | (Optional) 消息 |
timeout | number | (Optional) 超时 |
Returns
Promise<any>
RPC 服务返回