{"action":"opened","issue":{"url":"https://api.github.com/repos/siegesmund/SwiftDDP/issues/51","repository_url":"https://api.github.com/repos/siegesmund/SwiftDDP","labels_url":"https://api.github.com/repos/siegesmund/SwiftDDP/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/siegesmund/SwiftDDP/issues/51/comments","events_url":"https://api.github.com/repos/siegesmund/SwiftDDP/issues/51/events","html_url":"https://github.com/siegesmund/SwiftDDP/issues/51","id":162516632,"number":51,"title":"How to get a collection after subscription?","user":{"login":"RonGafni","id":4218260,"avatar_url":"https://avatars.githubusercontent.com/u/4218260?v=3","gravatar_id":"","url":"https://api.github.com/users/RonGafni","html_url":"https://github.com/RonGafni","followers_url":"https://api.github.com/users/RonGafni/followers","following_url":"https://api.github.com/users/RonGafni/following{/other_user}","gists_url":"https://api.github.com/users/RonGafni/gists{/gist_id}","starred_url":"https://api.github.com/users/RonGafni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonGafni/subscriptions","organizations_url":"https://api.github.com/users/RonGafni/orgs","repos_url":"https://api.github.com/users/RonGafni/repos","events_url":"https://api.github.com/users/RonGafni/events{/privacy}","received_events_url":"https://api.github.com/users/RonGafni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-27T18:27:23Z","updated_at":"2016-06-27T18:27:23Z","closed_at":null,"body":"Hey everyone, \r\n\r\n\"userLoginData\" - Give my all the information about the current user.\r\n\r\nI'm trying to get collection from subscription(called \"userLoginData\") and i can't figure it how should I get the collection after sign in. \r\n\r\nAppDelegate.swift\r\n`let users = MeteorCollection<User>(name: \"users\")\r\n    \r\n    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {\r\n        // Override point for customization after application launch.\r\n        \r\n        Meteor.client.logLevel = .Debug\r\n        \r\n        Meteor.connect(URL) {\r\n        \r\n        }\r\n        \r\n        \r\n        return true\r\n    }\r\n    ` \r\n\r\nLoginViewController.swift\r\n\r\n`Meteor.loginWithPassword(usernameTextField.text!, password: passwordTextField.text!) { (result, error) in\r\n            \r\n            if (error != nil) {\r\n                print(\"user not found\")\r\n                \r\n            }else{\r\n                \r\n                Meteor.subscribe(\"userLoginData\") {\r\n                    self.performSegueWithIdentifier(\"LoginScreenToMessagesScreenSegue\", sender: self)\r\n\r\n                }\r\n                \r\n               \r\n            }\r\n            \r\n            \r\n        }`\r\n\r\nand after that In MessagesViewController.swift I want to get all the information about the user(address, email, phone number etc..). How can I do this?? \r\n\r\nThanks!!\r\n\r\n"}}
{"actor":{"display_login":"RonGafni"}}