             return BRHTTPResponse(request: request, code: 204)
         }
         
+        // socket /_webviewinfo will send info about the webview state to client
+        router.websocket("/_webviewinfo", client: self)
+        
         router.printDebug()
         
         // enable debug if it is turned on

        print("[BRWebViewController disallowing navigation: \(navigationAction)")
        decisionHandler(.cancel)
    }
}

    // signal to the presenter that the webview content successfully loaded
    fileprivate func webviewDidLoad() {
        didLoad = true
        sendToAllSockets(data: webViewInfo)
    }
    
    open func startServer() {
