Connection fails after second disconnection
See original GitHub issueDo you want to request a feature or report a bug?
Bug
What is the current behavior?
- First page load pusher connects
initialized -> connecting
connecting -> connected
- Disconnect Wi-Fi
Pusher : : [{"type":"PusherError","data":{"code":1006}}]
connected -> connecting
connecting -> unavailable
- Reconnect Wi-Fi
unavailable -> connecting
connecting -> connected
- Disconnect Wi-Fi
Pusher : : [{"type":"PusherError","data":{"code":1006}}]
connected -> failed
No longer reconnects even if I try with a timeout
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.
What is the expected behavior?
I need a way to have a long running page (days, weeks or years at a time) be able to always receive events despite the unstable connections. Is there a way to achieve this?
Which versions of Pusher, and which browsers / OS are affected by this issue? Did this work in previous versions of Pusher? If so, which?
Using pusher 7.0.3 with Firefox 91.0 on MacOS but the same issue happens in all the other browsers as well
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Remote Desktop client disconnects and can't reconnect to the ...
In this article. After Remote Desktop client loses its connection to the remote desktop, the client can't immediately reconnect.
Read more >6 Common Wire Connection Problems and Their Solutions
Another common wire connection problem is when you find two or more wires held under a single screw terminal on a switch or...
Read more >5 Reasons Why Your Internet Keeps Disconnecting—and ...
Most common reasons for disconnecting internet · 1. Your modem or gateway needs a restart · 2. You have a spotty Wi-Fi signal...
Read more >Dropped Sessions and Disconnects - IBM
This document discusses how to troubleshoot and discusses possible causes for an application session drop or disconnect.
Read more >Why is the Internet Continuously Connecting ... - Computer Hope
Why is the Internet continuously connecting and disconnecting? · Cable or DSL modem. Cable modem · Wired/Wireless router. Access point · Network ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@benw-pusher that won’t solve the issue as pusher saves the connection and attempts inside localStorage. This is the fork I’m using: https://github.com/findmate/pusher-js-websocket-only
You would need to delete the cache to overcome this, but for any new device/browser connecting it should work