pusher - Connection interrupted when reloading page in chrome
See original GitHub issueNot 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:
- Created 6 years ago
- Reactions:12
- Comments:9 (1 by maintainers)
Top 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 >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
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
Closing this issue because it’s already solved, old or not relevant anymore. Feel free to reply if you’re still experiencing this issue.