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