LiveHelperChat / livehelperchat

Live Helper Chat - live support for your website. Featuring web and mobile apps, Voice & Video & ScreenShare. Supports Telegram, Twilio (whatsapp), Facebook messenger including building a bot.
http://livehelperchat.com
Apache License 2.0
1.95k stars 699 forks source link

Track user is online/offline #569

Closed rajeev8395 closed 9 years ago

rajeev8395 commented 9 years ago

Suppose a visitor comes to my site and he has chatted and left then it will be treated as grey, but now same user if is online on my site should be treated as online visitor irrespective of how long he is sitting idle and once he closes the window then he should be treated as offline visitor.

remdex commented 9 years ago

Sorry, I really do not get your logic. And what does mean "treated as online visitor"? I have no other option just close the issue. In any case nothing will be chagned.

PeopleInside commented 9 years ago

I can’t understand too :D Sorry.

You can try to explain better, if you are not confortable with English you can write how to reproduce (the issue) with the step to reproduce into demo of Live Helper Chat.

Good luck!

rajeev8395 commented 9 years ago

Ok sorry for my mistake here is scenario a functionality I can say:

  1. Lets say someone comes to website where LHC widget is installed.
  2. The user is not chatting doing nothing just ideal, at this moment he is shown as online visitor that is fine.
  3. Now user does nothing for full day but is on website then also he should be shown as online visitor whether he has browsed or not or whether he has chatted with operator or not.
  4. In case user closes browser window or tab then he should be removed from online visitor list even if it is just after few seconds

I tried to find solution for this and after research found one method that is by continusly pinging webserver using javascript something like here http://documentcloud.github.io/pixel-ping/ but have no idea on how to integrate it with LHC. I hope this time I make sense. Thanks

PeopleInside commented 9 years ago

It's fine in the way LHC works.

  1. In case visitor closes browser you will see user in online list but grey this means the user are not online anymore. If you don't want see the user in the list when is left please select 30 second in the menu as shown below and you will see disappear user after 30 seconds his get out: immagine senza nome

So i think with this - your topic is solved. What you say is already possible.