Dette websted vil have begrænset funktionalitet, mens vi gennemgår vedligeholdelse for at forbedre din oplevelse. Hvis en artikel ikke løser dit problem, og du vil stille et spørgsmål, har vi vores supportfællesskab, der venter på at hjælpe dig på @FirefoxSupport på Twitter og/r/firefox på Reddit.

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

Websockets long load time - connection interrupted

  • Ingen svar
  • 0 har dette 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 skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.