nnecting', 'ðŸŸ¡ Connecting...');
            addMessage('system', `Attempting to connect to ${WEBSOCKET_URL}`);

            socket = new WebSocket(WEBSOCKET_URL);

            socket.onopen = function (event) {
                updateStatus('connected', 'ðŸŸ¢ Connected to Osprey WebSocket Server');
                addMessage('system', 'âœ… WebSocket connection established!');
                connectionStartTime = Date.now();
                connectionTimer = setInterval(updateConnectionTime, 10