claude-collab
Version:
Claude Collab - The AI collaboration framework that prevents echo chambers
30 lines โข 1.2 kB
JavaScript
;
/**
* Test script for enhanced connection stability
* Run this to test the new connection features
*
* Created by Alex - Connection Expert
*/
const { enhancedJoin } = require('./enhanced-join');
// Test configuration
const testAgent = process.argv[2] || 'test-agent';
const VERSION = '3.2.3';
console.log('๐งช Testing Enhanced Connection Stability\n');
console.log('This test will demonstrate:');
console.log(' โ
Automatic reconnection on connection loss');
console.log(' โ
Message queuing during disconnection');
console.log(' โ
Graceful error handling');
console.log(' โ
Connection health monitoring\n');
// Run the enhanced join
enhancedJoin(testAgent, {
server: 'ws://localhost:8765',
role: 'tester',
perspective: 'quality-focused'
}, VERSION);
console.log('\n๐ก Try these tests:');
console.log(' 1. Stop the server (Ctrl+C) - watch it try to reconnect');
console.log(' 2. Start the server again - see automatic reconnection');
console.log(' 3. Send messages while disconnected - they\'ll be queued');
console.log(' 4. Use "status" command to check connection health\n');
//# sourceMappingURL=test-enhanced-connection.js.map