fix nextchapter bug

This commit is contained in:
Cai
2025-10-27 11:08:46 +08:00
parent b921bda4bc
commit 33bf569fb0
4 changed files with 1138 additions and 6 deletions

View File

@@ -3,8 +3,9 @@ var socket;
let system_message_idx = 0
document.addEventListener('DOMContentLoaded', function () {
data = window.appData;
console.log(data);
socket = io('/agent', {
const host = window.location.host;
console.log(`Connecting to WebSocket server at wss://${host}/agent`);
socket = io(`wss://${host}/agent`, {
query: {
user_uuid: data.user_uuid,
folder: data.folder