Operating system: MacOS 10.14.6
Chrome version: 77.0.3865.120
From this point on, each refresh of the page takes between 2 and 5 seconds to reconnect the websocket. Opening a new tab fixes the issue.
The websocket should connect instantly.
I understand that its very possible that this is a bug in Chrome, but as its incredibly noticeable and will affect all Chrome users (i.e. a very significant proportion of total users) I thought it was worth raising as an issue here.
"Opening a new tab fixes the issue." Thank you, I was pulling my hair out.
Are you seeing errors in the Chrome console that say the websocket connection failed with "Unknown reason"?
This sounds similar to a Chrome 77 bug that was just recently resolved: https://bugs.chromium.org/p/chromium/issues/detail?id=1006243
It does sound like a Chrome bug but since others may run into it, let's leave it "Open for Guidance".
FWIW, I noticed this happening quite frequently when working on a LiveView project in Firefox 69 on Linux. My cursory observation was that it only seemed to happen for the first LiveView session after starting the server (which fits the "opening a new tab" fix described above).
I'll try to reproduce and get some more detailed notes together.
Most helpful comment
FWIW, I noticed this happening quite frequently when working on a LiveView project in Firefox 69 on Linux. My cursory observation was that it only seemed to happen for the first LiveView session after starting the server (which fits the "opening a new tab" fix described above).
I'll try to reproduce and get some more detailed notes together.