{"action":"opened","issue":{"url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/29","repository_url":"https://api.github.com/repos/pusher/pusher-websocket-swift","labels_url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/29/comments","events_url":"https://api.github.com/repos/pusher/pusher-websocket-swift/issues/29/events","html_url":"https://github.com/pusher/pusher-websocket-swift/issues/29","id":137500199,"number":29,"title":"How do I trigger multiple times after connecting to a channel?","user":{"login":"aj-michael","id":7756476,"avatar_url":"https://avatars.githubusercontent.com/u/7756476?v=3","gravatar_id":"","url":"https://api.github.com/users/aj-michael","html_url":"https://github.com/aj-michael","followers_url":"https://api.github.com/users/aj-michael/followers","following_url":"https://api.github.com/users/aj-michael/following{/other_user}","gists_url":"https://api.github.com/users/aj-michael/gists{/gist_id}","starred_url":"https://api.github.com/users/aj-michael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aj-michael/subscriptions","organizations_url":"https://api.github.com/users/aj-michael/orgs","repos_url":"https://api.github.com/users/aj-michael/repos","events_url":"https://api.github.com/users/aj-michael/events{/privacy}","received_events_url":"https://api.github.com/users/aj-michael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-01T07:43:43Z","updated_at":"2016-03-01T07:43:43Z","closed_at":null,"body":"Apologies in advance, I'm probably missing something obvious.\r\n\r\nCurrently, I am subscribing to a channel and then immediately triggering several events with the same name. There is a time delay before pusher connects the channel and the result is only the final event is sent.\r\n\r\nSo to fix this, the best way would be to either queue all of the messages until the channel connects or for me to wait until the channel is connected to begin sending messages. How do I know when the channel is connected?"}}