I found a problem while working with my app. When chrome is opened, and then closed manually, I get a {:remote, :closed} termination from WebsockEx. I added a handle_disconnect callback to the WebSocket module, and trapped exits in PageSession so we could handle the remote closing gracefully, and handle it in the supervising process properly.
I found a problem while working with my app. When chrome is opened, and then closed manually, I get a
{:remote, :closed}
termination from WebsockEx. I added ahandle_disconnect
callback to the WebSocket module, and trapped exits inPageSession
so we could handle the remote closing gracefully, and handle it in the supervising process properly.