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

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

        config.requiresUserActionForMediaPlayback = true
        config.allowsPictureInPictureMediaPlayback = false
        
        if debugEndpoint != nil {
            server = BRAPIClient.sharedClient.serveBundle(bundleName, debugURL: debugEndpoint)
        } else {
            server = BRAPIClient.sharedClient.serveBundle(bundleName)
        }
        
        setupIntegrations()

        let indexUrl = NSURL(string: "http://localhost:8888/index.html")!
        let request = NSURLRequest(URL: indexUrl)
        
