Page 2 of 2

Re: SmartFox.joinedRooms problem - lists rooms I already left, and admin tool is correct

Posted: 04 Apr 2017, 07:32
by burnside
Thanks Lapo.

You can see in our code I posted we do remove all players from the rooms first, then after all players are confirmed removed we add them to their new room assignments.

I just found out the USER_ENTER_EVENT and USER_EXIT_EVENT were turned off on the parent room. (not the table rooms, which are also getting duplicated in the array) Would that cause issues with the joinedRooms array?

Re: SmartFox.joinedRooms problem - lists rooms I already left, and admin tool is correct

Posted: 04 Apr 2017, 07:56
by Lapo
Yes, because if those events are not fired the client side will not keep an updated list of users inside a Room.

Re: SmartFox.joinedRooms problem - lists rooms I already left, and admin tool is correct

Posted: 05 Apr 2017, 19:35
by burnside
Lapo wrote:Yes, because if those events are not fired the client side will not keep an updated list of users inside a Room.


Thanks!

We'll continue to try to figure out the joinedRooms array issue. Though with our work-around it is less pressing for us.

Cheers.