             session?.dataTaskWithRequest(req, completionHandler: callback).resume()
     }
     
-    private func doLongPoll(req: NSMutableURLRequest) {
+    private func doLongPoll(req: NSMutableURLRequest, open: Bool = false) {
         doRequest(req) {[weak self] data, res, err in
             guard let this = self else {return}
             

            }
        }

        doLongPoll(reqPolling)
    }

    private func parseEngineData(data: NSData) {

            
            if let str = NSString(data: data!, encoding: NSUTF8StringEncoding) as? String {
                dispatch_async(this.parseQueue) {[weak this] in
                    if open {
                        this?.handleOpen(str)
                    } else {
                        this?.parsePollingMessage(str)
                    }
                }
            }
            
