Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

Websockets long load time - connection interrupted

  • Keine Antworten
  • 0 haben dieses Problem
more options

Hi,

I am working on a website- one page uses websockets for data sync, activated with a button - and the socket takes a long time to actually connect (to locahost). During that time, an error pops into console- several of the same:

The connection to [url] was interrupted while the page was loading.

I found several bug reports in various places - most say to close the socket on page unload. I already have that implemented, and checking network dev tab shows all sockets are closed when the errors occur, and they also appear when tested in a whole new window. Also tested on chromium- no issues there.

Any help?

Hi, I am working on a website- one page uses websockets for data sync, activated with a button - and the socket takes a long time to actually connect (to locahost). During that time, an error pops into console- several of the same: The connection to [url] was interrupted while the page was loading. I found several bug reports in various places - most say to close the socket on page unload. I already have that implemented, and checking network dev tab shows all sockets are closed when the errors occur, and they also appear when tested in a whole new window. Also tested on chromium- no issues there. Any help?

Sie müssen sich mit Ihrem Benutzerkonto anmelden, um auf Beiträge zu antworten. Bitte stellen Sie eine neue Frage, wenn Sie noch kein Benutzerkonto haben.