[Webkit-unassigned] [Bug 228296] REGRESSION (iOS 15): Websocket connection instance in javascript client getting closed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 1 08:53:24 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=228296

--- Comment #27 from mattwindwer at gmail.com ---
Hey Jorge, as a work-around, I found that closing the WebSocket connection manually when the page is backgrounded prevents this issue from occurring (instead of waiting for the browser/OS to close the connection some time after sleep, which seems to trigger the bad state that results in the inability to reconnect to WebSockets even after page reload).

In our case, using ActionCable:

document.addEventListener('visibilitychange', () => {
  if (document.visibilityState === 'hidden') {
    cable.disconnect()
  } else {
    cable.connect()
  }
})

We are no longer getting customer reports after the above code went live. Still, this is a regression with "NSURLSession WebSocket" as previously mentioned.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211201/69a04852/attachment.htm>


More information about the webkit-unassigned mailing list