question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[React Native] Pusher going to the failed status after second time going offline

See original GitHub issue

Do you want to request a feature or report a bug? Looks like a bug. Or I don’t understand the options of enabledTransports. What is the current behavior?

Current behavior

  1. Use enabledTransports: ['ws', 'wss'], cause why not, seems logical
  2. Connect to the pusher and check everything is fine
  3. Go to airplane mode
  4. Pusher recovering
  5. Go to airplane mode again
  6. Pusher going to the status failed and never recovering.

Repro (too much code for that example, but it works if you have Pusher key): https://snack.expo.io/@dmitrybirin/70d96d

Expected behavior Pusher recovering everytime or There is note in the documentation, that the enabled transports options could lead to not recovering from disconnection

Which versions of Pusher, and which browsers / OS are affected by this issue? Did this work in previous versions of Pusher? If so, which? Platforms: iOS and Android React Native 0.62.2 Pusher-js 6.0.3

It’s not a big of a problem itself, but really confusing and maybe could be indicator of other problems.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
dmitrybirincommented, Jul 8, 2020

Hey @leesio! 👋 Sorry, missed the question. I’ve reproduced the same behaviour above with more than 2 minutes wait in the connected state. So, looks like, some transports missed life)

0reactions
stale[bot]commented, Apr 22, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you’d like this issue to stay open please leave a comment indicating how this issue is affecting you. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pusher (React) auto disconnects app (401 error), after 4 hours ...
I have a problem with my react app. I use pusher and I recently faced with a problem, that Pusher auto disconnects after...
Read more >
Going Offline First in React Native with GraphQL - YouTube
Presented by Kadi Kraman (@kadikraman)We live in a world that is online 24/7. Even so, we are reasonably lenient on the web when...
Read more >
pusher-js | Yarn - Package Manager
Pusher Channels JavaScript library for browsers, React Native, NodeJS and web workers ... For tutorials and more in-depth information about Pusher Channels, ...
Read more >
Creating offline-friendly React Native apps - Part 2: Real-world ...
Here's an overview of the things we're going to implement to make the app more offline friendly: Offline authentication - the app communicates ......
Read more >
@react-native-community/netinfo - npm
React Native Network Info API for iOS & Android. Latest version: 9.3.7, last published: a month ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found