     
     
     
-
-    
-    
     NSNotificationCenter.defaultCenter().addObserver(self, selector: "reportConnectionReady", name: MeteorClientConnectionReadyNotification, object: nil)
     NSNotificationCenter.defaultCenter().addObserver(self, selector: "reportConnection", name: MeteorClientDidConnectNotification, object: nil)
     NSNotificationCenter.defaultCenter().addObserver(self, selector: "reportDisconnection", name:MeteorClientDidDisconnectNotification, object: nil)

  
  func reportConnectionReady() {
    
    print("Connection Ready")
    connectWithSessionToken()

  }

      meteorClient.logonWithSessionToken(sessionToken, responseCallback: {(response, error) -> Void in
        
        if((error) != nil) {
            
          print("error!!! \(error)")
          return
            
        }
        print("\(response)\n")
        
        let appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
        
