1
This commit is contained in:
@@ -130,6 +130,17 @@ class ScheduleManager {
|
||||
console.error('[调度管理器] 处理响应消息失败:', error);
|
||||
}
|
||||
});
|
||||
|
||||
// 订阅 Boss 聊天消息主题,将 boss-automation-nodejs 转发过来的新消息交给 mqttDispatcher 处理
|
||||
this.mqttClient.subscribe("boss/message", async (topic, message) => {
|
||||
try {
|
||||
if (this.mqttDispatcher && typeof this.mqttDispatcher.handleBossMessage === 'function') {
|
||||
await this.mqttDispatcher.handleBossMessage(message);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('[调度管理器] 处理 Boss 消息失败:', error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user