title: Detecting a web socket connection drop
body: <p>In my Windows 8 JS application, I have a web socket object defined like this:</p>
  
  <pre><code>var webSocket = new Windows.Networking.Sockets.MessageWebSocket();
  webSocket.control.messageType = Windows.Networking.Sockets.SocketMessageType.utf8;
  webSocket.onmessagereceived = that._onMessageReceived;
  webSocket.onclosed = that._onClosed;
  </code></pre>
  
  <p>I connect using <code>webSocket.connectAsync(uri).done(/* ... */)</code> and that part works fine.</p>
  
  <p>If I stop my web server on the other end, my application doesn't get notified and thinks the connection is still alive. The 'closed' event never fires, and there doesn't seem to be any 'Error' event.</p>
  
  <p>Is there a way to monitor the connection status?</p>