/**
  * Closes the connection.
  *
  * @see "WebSocket.prototype.doClose"
  */
 @Override
 protected void doClose() {
   webSocket.close();
 }