 import Foundation
 import WebKit
 
-class SwiftBridgeCommander : NSObject, WKScriptMessageHandler {
+public class SwiftBridgeCommander : NSObject, WKScriptMessageHandler {
     let commandPrefix = "__SWIFT_BRIDGE_COMMANDER"
     let bridgeScriptObject = "__SWIFT_BRIDGE_COMMANDER_JS_OBJECT"
     

        self.args = message.args!
    }
    
    func send(args: String) {
        commander.send(args: args, id: self.message.id!)
    }
    
    func error(args: String) {
        commander.error(args: args, id: self.message.id!)
    }
}

        }
    }
    
    public func add(_ name: String, handler: @escaping CommandHandler){
        commands[name] = handler
    }
    
