mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-04-17 22:46:00 +00:00
Add debug logging and fix registerPlayer UI feedback
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user