fix(chat): rejoin match room after socket reconnection

This commit is contained in:
Radosław Gierwiało
2025-12-07 19:21:02 +01:00
parent 5db396e553
commit a5a2c7a160

View File

@@ -72,6 +72,7 @@ const useMatchChat = (match, userId, slug) => {
// Handle reconnection
socket.on('reconnect', (attemptNumber) => {
console.log('🔄 Match chat reconnected after', attemptNumber, 'attempts');
joinMatchRoom(); // Re-join room after reconnection
});
socket.on('reconnect_attempt', (attemptNumber) => {