We’re trying to create a chat application which is divided in multiple rooms. It’s possible for the user to leave a room and join again. This room retrieves a socket from a socket service. What happens is when we leave the room and join again there are multiple instances of our chat page. This results in receiving the same message multiple times.
Does anyone know what we’re doing wrong?
Should we kill a page? And if so, how?
Thanks a lot!