chrome-remote-interface
chrome-remote-interface copied to clipboard
Handle remote closed
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.