{"action":"created","issue":{"url":"https://api.github.com/repos/adamhartford/SwiftR/issues/32","repository_url":"https://api.github.com/repos/adamhartford/SwiftR","labels_url":"https://api.github.com/repos/adamhartford/SwiftR/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/adamhartford/SwiftR/issues/32/comments","events_url":"https://api.github.com/repos/adamhartford/SwiftR/issues/32/events","html_url":"https://github.com/adamhartford/SwiftR/issues/32","id":145140668,"number":32,"title":"Hub.on handler is never called.","user":{"login":"cliapis","id":5119202,"avatar_url":"https://avatars.githubusercontent.com/u/5119202?v=3","gravatar_id":"","url":"https://api.github.com/users/cliapis","html_url":"https://github.com/cliapis","followers_url":"https://api.github.com/users/cliapis/followers","following_url":"https://api.github.com/users/cliapis/following{/other_user}","gists_url":"https://api.github.com/users/cliapis/gists{/gist_id}","starred_url":"https://api.github.com/users/cliapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cliapis/subscriptions","organizations_url":"https://api.github.com/users/cliapis/orgs","repos_url":"https://api.github.com/users/cliapis/repos","events_url":"https://api.github.com/users/cliapis/events{/privacy}","received_events_url":"https://api.github.com/users/cliapis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T10:07:47Z","updated_at":"2016-04-01T13:09:41Z","closed_at":null,"body":"Hello, in my implementation the event names that I need to attach some code are dynamic. This means that I don't now the name of the event before I call the invoke method.\r\n\r\nCalling the Hub.on method right before the invoke doesn't seem to be working. The only way to make it work is to call the \"Hub.on\" methods right after the creation of the hub and before the connection is open.\r\n\r\nAny ideas on how to resolve the issue?\r\n"},"comment":{"url":"https://api.github.com/repos/adamhartford/SwiftR/issues/comments/204391949","html_url":"https://github.com/adamhartford/SwiftR/issues/32#issuecomment-204391949","issue_url":"https://api.github.com/repos/adamhartford/SwiftR/issues/32","id":204391949,"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-04-01T13:09:41Z","updated_at":"2016-04-01T13:09:41Z","body":"Could you share some code?"}}