User Count from 'User Enter Room' is incorrect

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

tmrobinson
Posts: 2
Joined: 13 Sep 2013, 16:29

User Count from 'User Enter Room' is incorrect

Postby tmrobinson » 16 Sep 2013, 14:36

Hi,

I set up a small test app that listens for the 'Room Join Success' (RJS) and 'User Enter Room' (UER) events and reports the value of 'getUserCount' from 'room' in the event object.

When I visit the page in the first browser window the RJS event reports the user count as 1, and when I visit in the second window the RJS event in there reports 2. However if I go back to the first window then the UER has successfully fired but the user count is reported as 1.

Am I missing something? Shouldn't the user count be reported as the number including the new user when they've entered a room?

Cheers,
Tom
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: User Count from 'User Enter Room' is incorrect

Postby Bax » 17 Sep 2013, 07:36

Thanks to your report we found a possible bug. We are looking into it. Thank you.
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: User Count from 'User Enter Room' is incorrect

Postby Bax » 17 Sep 2013, 10:44

We just published a new version of the API fixing this bug.
Please visit the download page.
Paolo Bax
The SmartFoxServer Team
tmrobinson
Posts: 2
Joined: 13 Sep 2013, 16:29

Re: User Count from 'User Enter Room' is incorrect

Postby tmrobinson » 17 Sep 2013, 11:35

Thanks Paolo!

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 23 guests