{"action":"created","issue":{"url":"https://api.github.com/repos/danielrhodes/Swift-ActionCableClient/issues/20","repository_url":"https://api.github.com/repos/danielrhodes/Swift-ActionCableClient","labels_url":"https://api.github.com/repos/danielrhodes/Swift-ActionCableClient/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/danielrhodes/Swift-ActionCableClient/issues/20/comments","events_url":"https://api.github.com/repos/danielrhodes/Swift-ActionCableClient/issues/20/events","html_url":"https://github.com/danielrhodes/Swift-ActionCableClient/issues/20","id":192899027,"number":20,"title":"Creating channel blocks main thread","user":{"login":"danipralea","id":768893,"avatar_url":"https://avatars.githubusercontent.com/u/768893?v=3","gravatar_id":"","url":"https://api.github.com/users/danipralea","html_url":"https://github.com/danipralea","followers_url":"https://api.github.com/users/danipralea/followers","following_url":"https://api.github.com/users/danipralea/following{/other_user}","gists_url":"https://api.github.com/users/danipralea/gists{/gist_id}","starred_url":"https://api.github.com/users/danipralea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danipralea/subscriptions","organizations_url":"https://api.github.com/users/danipralea/orgs","repos_url":"https://api.github.com/users/danipralea/repos","events_url":"https://api.github.com/users/danipralea/events{/privacy}","received_events_url":"https://api.github.com/users/danipralea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-01T16:42:41Z","updated_at":"2016-12-01T19:44:29Z","closed_at":null,"body":"Hello again @danielrhodes \r\nI found out that creating a `Channel` sometime blocks the main thread.\r\nMy code:\r\n```swift\r\nwebSocketsRoomChannel = SocketRouter.shared.client.create(WebSocketEventsChannel.channel, identifier: channelIdPayload, autoSubscribe: true, bufferActions: true)\r\n```\r\n\r\nThe stack:\r\n![screenshot 2016-12-01 18 39 38](https://cloud.githubusercontent.com/assets/768893/20802807/e9334ba2-b7f5-11e6-961c-a5ad8ce7ee52.png)\r\n\r\nI will come up with a fix if I find one\r\nUpdate:\r\n![screenshot 2016-12-01 19 08 48](https://cloud.githubusercontent.com/assets/768893/20803929/a1cb43ce-b7f9-11e6-914f-47f1751ae0eb.png)\r\n\r\nIs this an infinite cycle?"},"comment":{"url":"https://api.github.com/repos/danielrhodes/Swift-ActionCableClient/issues/comments/264273626","html_url":"https://github.com/danielrhodes/Swift-ActionCableClient/issues/20#issuecomment-264273626","issue_url":"https://api.github.com/repos/danielrhodes/Swift-ActionCableClient/issues/20","id":264273626,"user":{"login":"danielrhodes","id":120044,"avatar_url":"https://avatars.githubusercontent.com/u/120044?v=3","gravatar_id":"","url":"https://api.github.com/users/danielrhodes","html_url":"https://github.com/danielrhodes","followers_url":"https://api.github.com/users/danielrhodes/followers","following_url":"https://api.github.com/users/danielrhodes/following{/other_user}","gists_url":"https://api.github.com/users/danielrhodes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielrhodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielrhodes/subscriptions","organizations_url":"https://api.github.com/users/danielrhodes/orgs","repos_url":"https://api.github.com/users/danielrhodes/repos","events_url":"https://api.github.com/users/danielrhodes/events{/privacy}","received_events_url":"https://api.github.com/users/danielrhodes/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T19:44:29Z","updated_at":"2016-12-01T19:44:29Z","body":"What version are you using? Something similar to the above used to happen, especially if the the channel had not been retained anywhere. But that should be fixed now."}}
{"actor":{"display_login":"danielrhodes"}}