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

import Foundation
import WebKit

class SwiftBridgeCommander : NSObject, WKScriptMessageHandler {
    let commandPrefix = "__SWIFT_BRIDGE_COMMANDER"
    let bridgeScriptObject = "__SWIFT_BRIDGE_COMMANDER_JS_OBJECT"
    

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