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.

pusher - Connection interrupted when reloading page in chrome

See original GitHub issue

Not sure if this is the right place to write this issue.

Using Laravel + Vue + Pusher all the latest versions. It all works great and on first load there are no warnings in my Chrome console but then every time I reload the page (my page is not an SPA) it throws this warning:

Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":1006,"message":"Connection interrupted (0)"}}}

This also happens if I just click a link to change pages

I know it’s just a warning but is it supposed to be there and can I quiet it? I like to keep my console clear

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:12
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
spikefin-gobycommented, Jul 20, 2017

Sorry for my poor English.

Probably caused by LocalStrage named “pusherTransportEncrypted” or “pusherTransportUnencrypted”.

In my case, after deleting localstrage, no warning is output.

https://github.com/pusher/pusher-js/blob/0ef56995ed9605b79ba4b22d1a13c84652d47793/src/core/strategies/cached_strategy.ts#L92

0reactions
driesvintscommented, Oct 30, 2018

Closing this issue because it’s already solved, old or not relevant anymore. Feel free to reply if you’re still experiencing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"websocket was interrupted while page is loading" on Firefox ...
Websocket is interrupted when I refresh page on Firefox. That's why server side is waiting to authorise client. Here is code: server.js var...
Read more >
When a WebSocket connection is active and users refreshes ...
When a WebSocket connection is active and users refreshes the page an error is logged: "The connection to ... was interrupted while the...
Read more >
What Is Meant By Channels Error 1006? - Pusher
When a WebSocket connection is closed without a "close frame", the pusher-js library emits an error with code 1006. Usually this is caused ......
Read more >
Web Push Troubleshooting - OneSignal Documentation
Follow these steps to open the Chrome Developer Tools Console and check for errors on the site: Go to your website with the...
Read more >
Need help in using pusher with Flarum
Franz In my case, Pusher recognizes the connections but doesn't sent ... but my forum doesn't update live unless i reload the whole...
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