      return;
            }

            updateStatus('connecting', '连接中...');
            logContainer.innerHTML = '<p>等待接收 VCP 日志信息...</p>'; // 清空并显示等待信息

            ws = new WebSocket(wsUrl);

            ws.onopen = function(event) {
                console.log('WebSocket Connection Opened:', event);
                updateStatus('open', '已连接！可以接收 VCP 信息啦！');
                displayLog({ type: 'connection_ack', message: 'VCPLog 连接成功