Websocket gets disconnected: Uncaught (in promise) Error

I have this ticket, but never got around to doing a simple reproduction.
The way we work around it is do a window.reload when app comes back into focus
But this was in the context of a native app and using webview

https://github.com/phoenixframework/phoenix_live_view/issues/3041