{"action":"created","issue":{"url":"https://api.github.com/repos/vechain/thorify/issues/39","repository_url":"https://api.github.com/repos/vechain/thorify","labels_url":"https://api.github.com/repos/vechain/thorify/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/vechain/thorify/issues/39/comments","events_url":"https://api.github.com/repos/vechain/thorify/issues/39/events","html_url":"https://github.com/vechain/thorify/issues/39","id":348899023,"node_id":"MDU6SXNzdWUzNDg4OTkwMjM=","number":39,"title":"Make events RxJS / Observable compatible","user":{"login":"molekilla","id":1248071,"node_id":"MDQ6VXNlcjEyNDgwNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1248071?v=4","gravatar_id":"","url":"https://api.github.com/users/molekilla","html_url":"https://github.com/molekilla","followers_url":"https://api.github.com/users/molekilla/followers","following_url":"https://api.github.com/users/molekilla/following{/other_user}","gists_url":"https://api.github.com/users/molekilla/gists{/gist_id}","starred_url":"https://api.github.com/users/molekilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molekilla/subscriptions","organizations_url":"https://api.github.com/users/molekilla/orgs","repos_url":"https://api.github.com/users/molekilla/repos","events_url":"https://api.github.com/users/molekilla/events{/privacy}","received_events_url":"https://api.github.com/users/molekilla/received_events","type":"User","site_admin":false},"labels":[{"id":913453239,"node_id":"MDU6TGFiZWw5MTM0NTMyMzk=","url":"https://api.github.com/repos/vechain/thorify/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-08-08T21:29:26Z","updated_at":"2018-10-16T20:38:17Z","closed_at":"2018-10-16T20:38:17Z","author_association":"NONE","body":"Current way to read events requires polling for `getPastLogs` or `getPastEvents`. If would be nice if we could have a reactive way to listen for event streams using either RxJS or ES Observables.\r\n\r\nExample:\r\n\r\n```\r\ncontractInstance.getPastEvents('transfer').subscribe(log =>{\r\n// one log instead of an array of logs\r\n  console.log(log)\r\n}, \r\n() => console.log('completed'), \r\ne => console.log)\r\n```"},"comment":{"url":"https://api.github.com/repos/vechain/thorify/issues/comments/430391688","html_url":"https://github.com/vechain/thorify/issues/39#issuecomment-430391688","issue_url":"https://api.github.com/repos/vechain/thorify/issues/39","id":430391688,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDM5MTY4OA==","user":{"login":"molekilla","id":1248071,"node_id":"MDQ6VXNlcjEyNDgwNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1248071?v=4","gravatar_id":"","url":"https://api.github.com/users/molekilla","html_url":"https://github.com/molekilla","followers_url":"https://api.github.com/users/molekilla/followers","following_url":"https://api.github.com/users/molekilla/following{/other_user}","gists_url":"https://api.github.com/users/molekilla/gists{/gist_id}","starred_url":"https://api.github.com/users/molekilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molekilla/subscriptions","organizations_url":"https://api.github.com/users/molekilla/orgs","repos_url":"https://api.github.com/users/molekilla/repos","events_url":"https://api.github.com/users/molekilla/events{/privacy}","received_events_url":"https://api.github.com/users/molekilla/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T20:38:17Z","updated_at":"2018-10-16T20:38:17Z","author_association":"NONE","body":"Closing. 1.0.3 fixes it"}}
{"actor":{"display_login":"molekilla"}}