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

            }
        }

        doLongPoll(reqPolling)
    }

    private func parseEngineData(data: NSData) {

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