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

Presence sends leave event for old subscribed channels when subscribing to different new channels #222

Open
hareshkalyani opened this issue Jun 4, 2024 · 0 comments

Comments

@hareshkalyani
Copy link

Nuget SDK PubnubPCL : 6.19.3

Our app has an online/offline feature, and we subscribe to individual chat when we go inside the chat.

On the opening of the app we subscribe to the self-presence channel userId-presence. so other users can check online/offline status by subscribing to its presence channel userId-presence-pnpres

The presence signal works well, and the HereNow call returns the right Online/Offline status based on subscription.

However when a user goes inside the chat and subscribes to a new channel chatroom1, it leaves presence to the old Presence channel userId-presence

This does not happen every time. If we Subscribe to a channel and Unsubscribe to a channel quickly or multiple times in quick manner it starts to give a leave signal in the presence channel.

Because of that, users seem offline at the other end, which makes the app not function well.

@hareshkalyani hareshkalyani changed the title Presence gives leave signal for old channels when subscribing to different new channels Presence gives leave signal for old subscribed channels when subscribing to different new channels Jun 4, 2024
@hareshkalyani hareshkalyani changed the title Presence gives leave signal for old subscribed channels when subscribing to different new channels Presence sends leave event for old subscribed channels when subscribing to different new channels Jun 4, 2024
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

1 participant