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

Channels failed to be subscribed to cannot be unsubscribed from #433

Open
yu840915 opened this issue Jul 23, 2024 · 0 comments
Open

Channels failed to be subscribed to cannot be unsubscribed from #433

yu840915 opened this issue Jul 23, 2024 · 0 comments

Comments

@yu840915
Copy link

Steps to reproduce

  1. Create a Pusher client with custom authorizer, accessing external authorization endpoint and having chance to fail, e.g. network failure.
  2. Subscribe to a channel with airplane mode on.
  3. Unsubscribe from the channel.

Expected behavior

Swift SDK allows unsubscribing, clears the channel, like Java SDK.
Source

Actual behavior

The channel is stuck in PusherChannels.channels.

We found a guard clause may be related to the issue.
Source

The stuck channels can be unexpectedly subscribed to later when the app comes back from background and reconnects when we think they are dead.

Any improvements you suggest

...

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