Add debug logging and fix registerPlayer UI feedback

This commit is contained in:
2025-12-13 20:55:30 +11:00
parent b57611f0c4
commit 831aa0856d
2 changed files with 9 additions and 3 deletions

View File

@@ -36,7 +36,9 @@ io.on('connection', (socket) => {
// Player registration
socket.on('register_player', async (data) => {
console.log('📝 Registration request from', socket.id, 'username:', data.username);
const result = await gameManager.registerPlayer(socket, data.username);
console.log('📝 Registration result:', result);
socket.emit('registration_result', result);
});