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

Additional field to awareness update/change event #23

Open
mifopen opened this issue Oct 4, 2022 · 1 comment
Open

Additional field to awareness update/change event #23

mifopen opened this issue Oct 4, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mifopen
Copy link

mifopen commented Oct 4, 2022

It would be nice to have an additional field next to the existing added, updated, removed that contains client ids that were removed and now appear again. Something like resurrected.

For now, such clients appear either in updated array (for remote events) or in added array (for local events).

The motivation for this is that there are cases when you want to react only to changes in the set of clients and not a state of those (eg avatar list). For that, you could check for transaction.added > 0 || transaction.removed > 0 to do some work. But in case of disconnected and then connected again clients you wouldn't notice them as they are included in updated set.

@mifopen mifopen added the enhancement New feature or request label Oct 4, 2022
@mifopen
Copy link
Author

mifopen commented Jan 25, 2023

Hey! Is there any way we can help with it?

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

No branches or pull requests

2 participants