Who's Online Not Refreshing

  • Problem
  • Updated 3 years ago
The "Who's Online" module is not refreshing. We have had the same number of members showing up in this module for several hours. Could you please look in to this?
Photo of Utopia

Utopia

  • 39 Posts
  • 1 Reply Like

Posted 4 years ago

  • 6
Photo of 8 Toes

8 Toes, Developer

  • 6077 Posts
  • 410 Reply Likes
Hi Utopia,

The who's online was just changed today to use our new socket connections (the same as the chat uses); anyone with an open browser tab to your site that is logged in should show there now, and as they join/leave it should update =)

Cheers,
Photo of Utopia

Utopia

  • 39 Posts
  • 1 Reply Like
I guess I'm a little confused 8. What changed specifically over how it was previously done? We never had this many people logged in at one time. I thought (could be wrong on this) that if you logged on to the website, your name showed in the "Who's Online" list and when you logged off, your name would no longer appear. We have quite a lengthy list now which we did not have in the past before you started using the new socket connections.

I no longer see the number of members decreasing as they log off. Am I missing something? Something's changed and I'm not understanding what. Sorry :-( I need to explain this to others and cannot do this if I don't understand myself.
Photo of 8 Toes

8 Toes, Developer

  • 6077 Posts
  • 410 Reply Likes
Hi Utopia,

Previously, as we had no web socket connection, the Who's Online worked like this:

Whenever you perform any action on the site (view a page, post something, etc.) your session time gets set to the current time.

Who's Online would then consider anyone with a session time of less than 10 minutes ago online.

This meant, someone who came to your site, and sat there with the browser open but did nothing, would appear offline after 10 minutes. When they then performed an action, they would appear back online.

Now, with the socket, it works like this:

When you visit the website, a connection to the web socket is made.

The Who's Online will show everyone connected to the socket.

When you close the browser window or leave the site, you'll go offline.

The socket should be more accurate, tho members who use tabbed browsing and may constantly leave a tab open to your site now will appear online, even if they are browsing the web in other tabs; whereas before this would not be the case, as they would drop offline after 10 minutes of inactivity.
Photo of Utopia

Utopia

  • 39 Posts
  • 1 Reply Like
Ah ... The light bulb came on. LOL Understand now. Thanks for the explanation 8!
Photo of 8 Toes

8 Toes, Developer

  • 6077 Posts
  • 410 Reply Likes
=)
Photo of M.

M.

  • 2 Posts
  • 0 Reply Likes
I find this slightly annoying to be honest.

I see people showing online, however. when I click their name to go their personal profile, it shows them offline and stating how long ago they were online.

So to show them still online in the sidebar but not actually they're not actually online is annoying. For example, a member is showing online in the sidebar, yet in their character profile, it's showing them as being online 1 hr ago.

I think it worked much better the old way ><
Photo of 8 Toes

8 Toes, Developer

  • 6077 Posts
  • 410 Reply Likes
Thanks for your feedback M.

We'll see if we can add a session time on the socket as well, which will then make this more accurate and show similar information across the site.

Cheers,
Photo of Utopia

Utopia

  • 39 Posts
  • 1 Reply Like
I have to agree with M. I think I prefer the way that it was before 8. The info gave a more accurate picture of who is online. I do realize that you had to synchronize the info between the Chat Box and the Who's Online but the old method gave a better picture of who was actually on the site recently.

Thanks for considering this change :-)
Photo of M.

M.

  • 2 Posts
  • 0 Reply Likes
Ok, I'm not sure if anything has been changed but I'm noticing something new that's even more annoying ><

Seems that I go "idle" ? Does this mean that I no longer show as online?

I like to stay logged into our site so ppl know I'm around if they need me for anything, but if I go idle every 5 mins and show as offline then it isn't good. And to have to keep refreshing the page or pushing F5...

I'd really like it if it was back the way it was..I could stay logged into the site all day if needed and always showed online.

Not every "improvement" is an improvement *waves white flag*
Photo of 8 Toes

8 Toes, Developer

  • 6077 Posts
  • 410 Reply Likes
Hi M.

This idle change makes things work exactly how it should have prior to us adding the chat; where the who's online only showed members who had been active in the last 10 minutes

[prior to the chat, the who's online didn't update after you went idle, so it may have appeared to you that you were still online, but others would have seen you drop offline; now this is just more clear how it works]

I hope you had a good weekend,
Photo of elfmoogle

elfmoogle

  • 18 Posts
  • 1 Reply Like
I am having this same problem on my website, there's a couple people who seem to show up online every day, all day, and they are most definitely not there. Relogging into the site doesn't change this (at least from my end).
Photo of 8 Toes

8 Toes, Developer

  • 6077 Posts
  • 410 Reply Likes
Hi Elfmoogle,

This is an issue with Pusher (http://www.pusher.com), which we use for the chat and who's online; once they resolve this issue this should stop occurring =)

Cheers,
Photo of elfmoogle

elfmoogle

  • 18 Posts
  • 1 Reply Like
Thank you very much for the fast response :) Hopefully that gets fixed soon.
Photo of shawnbuckmaster

shawnbuckmaster

  • 8 Posts
  • 0 Reply Likes
Can we get anything that shows the amount of guests online?
Photo of 8 Toes

8 Toes, Developer

  • 6077 Posts
  • 410 Reply Likes
Hi Shawn,

We used to have guest tracking, but it had a few issues, so we disabled the feature; we may add this back in the future tho, especially now that we are gearing more to support communities as well as guilds, perhaps this can be included with our stats update which won't be too far away =)
Photo of shawnbuckmaster

shawnbuckmaster

  • 8 Posts
  • 0 Reply Likes
Great thanks for the response!