     func reportDisconnection() {
         print("================> disconnected from server!")
         
+        
         //notify current rootview controller
         let controller = self.window?.rootViewController
         

    func applicationWillEnterForeground(application: UIApplication) {

        NSUserDefaults.standardUserDefaults().setBool(false, forKey: "kDisplayStatusLocked")
        
    }
    
    

                }
                print("\(response)\n")
                
                NSUserDefaults.standardUserDefaults().setBool(true, forKey: "connectedWithSessionToken")
                
                let appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
                
                
