将join room提前到on_connect

This commit is contained in:
CakeCN
2026-01-08 20:50:56 +08:00
parent 09103abf38
commit 5b8180b48e
2 changed files with 10 additions and 2 deletions

View File

@@ -75,6 +75,8 @@ document.addEventListener('DOMContentLoaded', function () {
folder: data.folder
}
});
console.log('Connecting to WebSocket server at wss://${host}/agent');
console.log(data);
// 初始化聊天消息管理器
chatManager = new ChatMessageManager();