     var webView: WKWebView?
     var bundleName: String
     var server: BRHTTPServer?
+    var debugEndpoint: String?
     
     init(bundleName name: String) {
         wkProcessPool = WKProcessPool()

        config.requiresUserActionForMediaPlayback = true
        config.allowsPictureInPictureMediaPlayback = false
        
        server = BRAPIClient.sharedClient.serveBundle("bread-buy", debugURL: "http://localhost:4200")
        setupIntegrations()
//        server = BRAPIClient.sharedClient.serveBundle("bread-buy")
        let indexUrl = NSURL(string: "http://localhost:8888/index.html")!
        let request = NSURLRequest(URL: indexUrl)
        

    public func preload() {
        _ = self.view // force webview loading
    }
    
    public func refresh() {
        webView?.reload()
    }
}
