= 10) {
                        addMessage('system', 'âœ… Message burst test completed!');
                    }
                }, i * 100);
            }
        }

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

            addMessage('system', 'Starting stress test (100 messages)...');

            for (let i = 1; i <= 100; i++) {
                setTime