Skip to content

Additional field to awareness update/change event #23

@mifopen

Description

@mifopen

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions