0๐
โ
Canโt believe it is that simple, I just added an if condition and everything worked fine. actually I feel very stupid already ๐ ๐
socket.on('room:App\\Events\\UserJoined', function(data) {
if(this.room.id == data.payload.roomId){
this.usersCount = data.payload.usersCount;
}
}.bind(this));
Thanks to everyone who viewed my question trying to help
Source:stackexchange.com