Home > SYS_MessageBus > rpcService
SYS_MessageBus.rpcService() method
私有消息总线:注册 RPC 服务
Signature
typescript
rpcService(topic: string, callbackFn: (...args: Array<any>) => any | Promise<any>): void;1
Parameters
Parameter | Type | Description |
|---|---|---|
topic | string | 主题 |
callbackFn | (...args: Array<any>) => any | Promise<any> | 接收到消息后的回调 |
Returns
void