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

Unclear when user is present vs. in other tab vs. offline #460

Open
jkeat opened this issue Jun 18, 2020 · 1 comment
Open

Unclear when user is present vs. in other tab vs. offline #460

jkeat opened this issue Jun 18, 2020 · 1 comment
Labels

Comments

@jkeat
Copy link
Member

jkeat commented Jun 18, 2020

This PR will show whether the partner's socket is connected or not:
https://github.com/UPchieve/server/pull/371

But a user can have a connected socket and still be unreachable (e.g. they're in another tab). What's the best way to address this?

ideas

@jkeat jkeat added the question label Jun 18, 2020
@thedevelopnik
Copy link
Member

The Page Visibility API looks like a good option. It has support back pretty far in pretty much every browser, so not likely to need shims.

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

No branches or pull requests

2 participants