- Fix WebSocket server to properly broadcast logs to all connected clients - Integrate professional logging system with real-time WebSocket interface - Add network status indicator with DigitalOcean Spaces connectivity - Implement AWS Signature V4 authentication for private bucket access - Add JSON content loader with backward compatibility to JS modules - Restore navigation breadcrumb system with comprehensive logging - Add multiple content formats: JSON + JS with automatic discovery - Enhance top bar with logger toggle and network status indicator - Remove deprecated temp-games module and clean up unused files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
44 lines
1.3 KiB
HTML
44 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Test WebSocket Connection</title>
|
|
</head>
|
|
<body>
|
|
<h1>Test WebSocket Connection</h1>
|
|
<div id="status">Connecting...</div>
|
|
<div id="messages"></div>
|
|
|
|
<script>
|
|
const statusDiv = document.getElementById('status');
|
|
const messagesDiv = document.getElementById('messages');
|
|
|
|
console.log('🔌 Tentative de connexion WebSocket...');
|
|
const ws = new WebSocket('ws://localhost:8082');
|
|
|
|
ws.onopen = () => {
|
|
console.log('✅ WebSocket connecté !');
|
|
statusDiv.textContent = 'Connecté !';
|
|
statusDiv.style.color = 'green';
|
|
};
|
|
|
|
ws.onmessage = (event) => {
|
|
console.log('📨 Message reçu:', event.data);
|
|
const messageDiv = document.createElement('div');
|
|
messageDiv.textContent = `Reçu: ${event.data}`;
|
|
messagesDiv.appendChild(messageDiv);
|
|
};
|
|
|
|
ws.onclose = () => {
|
|
console.log('❌ Connexion fermée');
|
|
statusDiv.textContent = 'Déconnecté';
|
|
statusDiv.style.color = 'red';
|
|
};
|
|
|
|
ws.onerror = (error) => {
|
|
console.log('❌ Erreur WebSocket:', error);
|
|
statusDiv.textContent = 'Erreur de connexion';
|
|
statusDiv.style.color = 'red';
|
|
};
|
|
</script>
|
|
</body>
|
|
</html> |