`ws://${host}:${port}/ws`);

        socket.addEventListener('message', (event) => {
            const data = JSON.parse(event.data);
            // 更新 targetList 循环
            targetListDiv.innerHTML = '';

            if(data !== null) {
                console.log(data);
                data.forEach(l => {
                    const a = document.createElement('a');
                    a.href = `/SCopilot?host=${l.host}`;
                    a.className = 'page-link list-group-item list-group-item