Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Websockets long load time - connection interrupted

  • Inga svar
  • 0 har detta 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?

Du måste logga in på ditt konto för att svara på inlägg. Vänligen starta en ny fråga om du inte har ett konto ännu.