WebSocket closed due to page reload error

I have a button that calls a function to reload the page:

function doReload() {
 window.location='/'
}

About 1 out of 5 times, Safari 11 throws this error in the console:

WebSocket connection to 'ws://localhost:8080/sockjs-node/978/yzsndro2/websocket' failed: WebSocket is closed due to suspension.

I started the Webpack 2 dev server backstage.

Chrome doesn't seem to. This is the High Sierra Beta, possibly a mistake.

Suggestions or ideas?

+4
source share
1 answer

I just saw this same message in the latest version of Safari 11. According to the webKit code: https://github.com/WebKit/webkit/blob/master/Source/WebCore/Modules/websockets/WebSocket.cpp#L505 .

, -, DOMObjects . , , : https://bugs.webkit.org/show_bug.cgi?id=143513.

0

Source: https://habr.com/ru/post/1684256/


All Articles