{"action":"created","issue":{"url":"https://api.github.com/repos/adamhartford/SwiftR/issues/70","repository_url":"https://api.github.com/repos/adamhartford/SwiftR","labels_url":"https://api.github.com/repos/adamhartford/SwiftR/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/adamhartford/SwiftR/issues/70/comments","events_url":"https://api.github.com/repos/adamhartford/SwiftR/issues/70/events","html_url":"https://github.com/adamhartford/SwiftR/issues/70","id":188296398,"number":70,"title":"Having difficulties with SwiftR","user":{"login":"cody1024d","id":5884708,"avatar_url":"https://avatars.githubusercontent.com/u/5884708?v=3","gravatar_id":"","url":"https://api.github.com/users/cody1024d","html_url":"https://github.com/cody1024d","followers_url":"https://api.github.com/users/cody1024d/followers","following_url":"https://api.github.com/users/cody1024d/following{/other_user}","gists_url":"https://api.github.com/users/cody1024d/gists{/gist_id}","starred_url":"https://api.github.com/users/cody1024d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cody1024d/subscriptions","organizations_url":"https://api.github.com/users/cody1024d/orgs","repos_url":"https://api.github.com/users/cody1024d/repos","events_url":"https://api.github.com/users/cody1024d/events{/privacy}","received_events_url":"https://api.github.com/users/cody1024d/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-09T16:49:40Z","updated_at":"2016-11-09T17:13:32Z","closed_at":"2016-11-09T17:03:23Z","body":"I'm having difficulty getting SwiftR to function.  I am working on a Swift-port of an application previously written in Objective-C, where we were using Objc-SignalR.  The previous application works, and is able to register for a callback, and receives them correctly.\r\n\r\nWith SwiftR, I am invoking the correct hub method, and I receive no errors, however, none of my callbacks ever fire.  I have already confirmed that the arguments are the same (although the JSON sent over Objc-SignalR, when I stepped through it, contained the method name, etc. tacked on by Objc-SignalR), and so am utterly confused what else could be happening.\r\n\r\nHere is the actual SwiftR interaction code:\r\n\r\n```swift\r\n        SwiftR.connect(serverUrl) { connection in\r\n            connection.error = { error in\r\n                print(error)\r\n            }\r\n            connection.connectionFailed = {\r\n                print(\"connectionFailed\")\r\n            }\r\n            let countHub = connection.createHubProxy(\"CheckIn\")\r\n            countHub.on(\"SubscribeRoomUpdateCallback\", callback: self.subscribeCallBack)\r\n            countHub.on(\"CheckinRoomCountUpdate\") { self.roomCountUpdated(args: $0, callBack: callBack) }\r\n            let subscribeRequestJson = subscribeRequest.toJSON()\r\n            countHub.invoke(\"SubscribeRoomUpdate\", arguments: [subscribeRequestJson]) { result in\r\n                print(result)\r\n            }\r\n            self.countHub = countHub\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/adamhartford/SwiftR/issues/comments/259469607","html_url":"https://github.com/adamhartford/SwiftR/issues/70#issuecomment-259469607","issue_url":"https://api.github.com/repos/adamhartford/SwiftR/issues/70","id":259469607,"user":{"login":"adamhartford","id":2056763,"avatar_url":"https://avatars.githubusercontent.com/u/2056763?v=3","gravatar_id":"","url":"https://api.github.com/users/adamhartford","html_url":"https://github.com/adamhartford","followers_url":"https://api.github.com/users/adamhartford/followers","following_url":"https://api.github.com/users/adamhartford/following{/other_user}","gists_url":"https://api.github.com/users/adamhartford/gists{/gist_id}","starred_url":"https://api.github.com/users/adamhartford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamhartford/subscriptions","organizations_url":"https://api.github.com/users/adamhartford/orgs","repos_url":"https://api.github.com/users/adamhartford/repos","events_url":"https://api.github.com/users/adamhartford/events{/privacy}","received_events_url":"https://api.github.com/users/adamhartford/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T17:13:32Z","updated_at":"2016-11-09T17:13:32Z","body":"You're welcome. I hear ya. I've never been really happy with it myself, but set it up the way I needed it to work  in the beginning and never changed it. Maybe `SwiftR.start` or `SwiftR.create` `SwiftR.initialize` or something like that would be better? I'd happily take some suggestions.\r\n\r\nIt just needs to complete that callback routine to setup hubs, etc. before actually starting to communicate with SignalR."}}
{"actor":{"display_login":"adamhartford"}}