{"action":"opened","issue":{"url":"https://api.github.com/repos/AngularClass/angular-websocket/issues/53","labels_url":"https://api.github.com/repos/AngularClass/angular-websocket/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/AngularClass/angular-websocket/issues/53/comments","events_url":"https://api.github.com/repos/AngularClass/angular-websocket/issues/53/events","html_url":"https://github.com/AngularClass/angular-websocket/issues/53","id":120798009,"number":53,"title":"onOpen / onClose outside digest loop","user":{"login":"Krisa","id":1253866,"avatar_url":"https://avatars.githubusercontent.com/u/1253866?v=3","gravatar_id":"","url":"https://api.github.com/users/Krisa","html_url":"https://github.com/Krisa","followers_url":"https://api.github.com/users/Krisa/followers","following_url":"https://api.github.com/users/Krisa/following{/other_user}","gists_url":"https://api.github.com/users/Krisa/gists{/gist_id}","starred_url":"https://api.github.com/users/Krisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krisa/subscriptions","organizations_url":"https://api.github.com/users/Krisa/orgs","repos_url":"https://api.github.com/users/Krisa/repos","events_url":"https://api.github.com/users/Krisa/events{/privacy}","received_events_url":"https://api.github.com/users/Krisa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T15:27:41Z","updated_at":"2015-12-07T15:27:41Z","closed_at":null,"body":"Looks like onOpen and onClose event are outside the event loop (forcing the use of a manual rootScope.apply). Maybe the same for onError."}}