Describe the bug
The online user counter in the chat interface displays "0" even when multiple users are actively connected and chatting in the room.
To Reproduce
Steps to reproduce the behavior:
- Open the application in two different browsers or incognito windows.
- Log in as 'User A' in the first window and join a chat room.
- Log in as 'User B' in the second window and join the same chat room.
- Observe the "Online Users" count in the chat header.
Expected behavior
The counter should reflect the accurate number of users currently connected to the socket/room (e.g., it should show "2").
Screenshots
Desktop (please complete the following information):
- OS: Windows 11
- Browser: Chrome
Describe the bug
The online user counter in the chat interface displays "0" even when multiple users are actively connected and chatting in the room.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The counter should reflect the accurate number of users currently connected to the socket/room (e.g., it should show "2").
Screenshots
Desktop (please complete the following information):