  }

            addMessage('system', 'Starting message burst test (10 messages)...');

            for (let i = 1; i <= 10; i++) {
                setTimeout(() => {
                    const msg = {
                        type: 'burst_test',
                        sequence: i,
                        message: `Burst message ${i}/10`,
                        timestamp: new Date().toISOString()
                    };
                    sendMessage(JSON.stringify(msg), true);

                    if (i ==