     }

        function sendStatusUpdate() {
            const statusMsg = {
                type: 'status',
                user: 'BrowserClient',
                status: 'online',
                timestamp: new Date().toISOString()
            };
            sendMessage(JSON.stringify(statusMsg), true);
        }

        function runMessageBurst() {
            if (!socket || socket.readyState !== WebSocket.OPEN) {
                addMessage('error', 'Not connected!');
                return;
          