Home > SYS_MessageBus > rpcService
SYS_MessageBus.rpcService() method
私有消息总线:注册 RPC 服务
签名
typescript
rpcService(topic: string, callbackFn: (...args: Array<any>) => any | Promise<any>): void;1
参数名
参数 | 类型 | 描述 |
|---|---|---|
topic | string | 主题 |
callbackFn | (...args: Array<any>) => any | Promise<any> | 接收到消息后的回调 |
返回值
void