     if clientSocket != nil {
       self.log(">> \(message)")
       do {
-        //try clientSocket!.write(from:message)
+        try clientSocket!.write(from:message)
       } catch let err {
         self.log("Socket write error: \(err)")
       }

   *************************************************************************************/
  func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
    title = webView.title
    self.sendNotification(message: "navigate:end")
  }
  
  func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
    let url = navigationAction.request.url!
    self.sendNotification(message: "navigate:start", data:url.absoluteString)
    webView.evaluateJavaScript(hideOrange) { (result, error) in
      decisionHandler(.allow)
    }
  }

  func sendMessage(id:String, message:String, data:String) {
    let queue = DispatchQueue(label: "org.webpagetest.message", attributes: .concurrent)
    queue.async {
      var str = id
      if str.characters.count > 0 {
        str += ":"
      }
      str += message
      if data.characters.count > 0 {
        str += "\t"
        str += data
      }
      str += "\n"
      self.sendMessageAsync(str)
    }
  }
  
