     func sendMultipartRequest(_ resolve: @escaping (_ result: (Int, [AnyHashable: Any], JSON)) -> Void,
                               reject: @escaping (_ error: Error) -> Void,
                               progress:@escaping (Float) -> Void) {
-        upload(multipartFormData: { formData in
+        wsUpload(multipartFormData: { formData in
             for (key, value) in self.params {
                 let str: String
                 switch value {

    open var postParameterEncoding: ParameterEncoding = URLEncoding()
    open var showsNetworkActivityIndicator = true
    open var errorHandler: ((JSON) -> Error?)?
    
    private let logger = WSLogger()
    
    fileprivate var req: DataRequest?//Alamofire.Request?

    
    func sendJSONRequest(_ resolve: @escaping (_ result: (Int, [AnyHashable: Any], JSON)) -> Void,
                         reject: @escaping (_ error: Error) -> Void) {
        self.req = wsRequest(self.buildRequest())
        logger.logRequest(self.req!)
        let bgQueue = DispatchQueue.global(qos: DispatchQoS.QoSClass.default)
        req?.validate().responseJSON(queue: bgQueue) { r in
