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

[1.x] Correctly dispatches presence events #216

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Conversation

joedixon
Copy link
Collaborator

This PR resolves #213

The fixes introduced all occur when a user is logged in to a single account, but connected to Reverb in multiple tabs or browswers.

The subscription_succeeded event should contain a unique list of connected user IDs.

The member_added event should only be dispatched the first time a user connects to the channel (e.g. the first browser tab).

The member_removed event should only be dispatched when the user no longer has any connections remaining (e.g. closed all tabs).

Details can be found in the Pusher spec.

@stefanvdlugt
Copy link

@joedixon I can confirm that this PR resolves issue #213. Thanks!

@joedixon joedixon marked this pull request as ready for review June 27, 2024 07:56
@taylorotwell taylorotwell merged commit 472c37d into main Jun 27, 2024
11 checks passed
@taylorotwell taylorotwell deleted the fix/unique-users branch June 27, 2024 07:58
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

Successfully merging this pull request may close these issues.

Presence channel inconsistencies
3 participants