datietou

Results 1 issues of datietou

根据文档的说明 https://www.eggjs.org/zh-CN/core/cluster-and-ipc#agent-%E6%9C%BA%E5%88%B6 写一个agent.js // agent.js module.exports = agent => { // 在这里写你的初始化逻辑 // 也可以通过 messenger 对象发送消息给 App Worker // 但需要等待 App Worker 启动成功后才能发送,不然很可能丢失 agent.messenger.on('egg-ready', () => { agent.messenger.sendToApp('xxx_action', '232r'); });...