title: What happens with WebSocket connections when a phone's screen locks?
body: <p>When a phone browser has an open connection, and the user locks the screen, then at a certain point they will no longer have a WebSocket connection.</p>
  
  <p>What events are fired when this happens? Is the <code>WebSocket.onerror</code> or <code>WebSocket.onclose</code> handler called, and if so, does this happen when the screen locks/the app is suspended, or when the app comes back up again?</p>
  
  <p>(And bonus question: is this standardised, or do browsers behave differently, and if so, how?)</p>