TIL all about how Websockets close, and specifically that Firefox sends a CloseEvent when the user navigates away, while Chrome just closes the connection.
I was looking into it because we noticed we had Websockets that looked like they were trying to connect twice on every page load. Turned out it was the last page that was trying to reconnect a lost Websocket during close