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.

Connection fails after second disconnection

See original GitHub issue

Do 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lucadegaspericommented, Sep 2, 2021

@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

0reactions
benw-pushercommented, Sep 2, 2021

You would need to delete the cache to overcome this, but for any new device/browser connecting it should work

Read more comments on GitHub >

github_iconTop 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 >

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