Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User online show online when at dailogs page. #33

Open
shubhamdevgan opened this issue Mar 3, 2019 · 3 comments
Open

User online show online when at dailogs page. #33

shubhamdevgan opened this issue Mar 3, 2019 · 3 comments

Comments

@shubhamdevgan
Copy link

The opponent user is only shown online when he is at dailogs page.How to show him online when he is anywhere online on site? I'm fairly new to django so please help me.
I have implemented django private chat in my project I want to show opponent online even when he is not at dialogs page.How to do that.What change's I would have to do?

@delneg
Copy link
Collaborator

delneg commented Mar 3, 2019

You probably should add javascript to send online status to all existing opponents (probably keep it in localstorage) at all times.

@shubhamdevgan
Copy link
Author

how to do that? You have any JS code for that. It would be of great help.

@delneg
Copy link
Collaborator

delneg commented Mar 3, 2019

Please look at js included in example project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants