{"action":"created","issue":{"url":"https://api.github.com/repos/vechain/thor/issues/91","repository_url":"https://api.github.com/repos/vechain/thor","labels_url":"https://api.github.com/repos/vechain/thor/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/vechain/thor/issues/91/comments","events_url":"https://api.github.com/repos/vechain/thor/issues/91/events","html_url":"https://github.com/vechain/thor/issues/91","id":348812960,"node_id":"MDU6SXNzdWUzNDg4MTI5NjA=","number":91,"title":"Feature Request - WS provider for easier web3 event handling","user":{"login":"decent-dev","id":30058929,"node_id":"MDQ6VXNlcjMwMDU4OTI5","avatar_url":"https://avatars3.githubusercontent.com/u/30058929?v=4","gravatar_id":"","url":"https://api.github.com/users/decent-dev","html_url":"https://github.com/decent-dev","followers_url":"https://api.github.com/users/decent-dev/followers","following_url":"https://api.github.com/users/decent-dev/following{/other_user}","gists_url":"https://api.github.com/users/decent-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/decent-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decent-dev/subscriptions","organizations_url":"https://api.github.com/users/decent-dev/orgs","repos_url":"https://api.github.com/users/decent-dev/repos","events_url":"https://api.github.com/users/decent-dev/events{/privacy}","received_events_url":"https://api.github.com/users/decent-dev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-08T17:03:59Z","updated_at":"2018-08-16T13:36:55Z","closed_at":null,"author_association":"NONE","body":"At the moment it seems like we're forced to use `getPastEvents()` to retrieve event logs from contracts that we intend to subscribe to. \r\n\r\nPolling `getPastEvents()` every X seconds is proving to be an inconvenience especially when designing dapps/scripts that depend on tracking events and acting on changes that have been made. \r\n\r\nAlso subscriptions can't seem to be leveraged to track general events like say newBlockHeaders - which would have made certain things easier during development of dapps/scripts etc.\r\n\r\nIf we could use a web socket provider with Thor/Thorify, similar to how we do it with Geth/Web3 now - it'd aid Thor based development immensely."},"comment":{"url":"https://api.github.com/repos/vechain/thor/issues/comments/413547934","html_url":"https://github.com/vechain/thor/issues/91#issuecomment-413547934","issue_url":"https://api.github.com/repos/vechain/thor/issues/91","id":413547934,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzU0NzkzNA==","user":{"login":"samvaughton","id":584914,"node_id":"MDQ6VXNlcjU4NDkxNA==","avatar_url":"https://avatars3.githubusercontent.com/u/584914?v=4","gravatar_id":"","url":"https://api.github.com/users/samvaughton","html_url":"https://github.com/samvaughton","followers_url":"https://api.github.com/users/samvaughton/followers","following_url":"https://api.github.com/users/samvaughton/following{/other_user}","gists_url":"https://api.github.com/users/samvaughton/gists{/gist_id}","starred_url":"https://api.github.com/users/samvaughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samvaughton/subscriptions","organizations_url":"https://api.github.com/users/samvaughton/orgs","repos_url":"https://api.github.com/users/samvaughton/repos","events_url":"https://api.github.com/users/samvaughton/events{/privacy}","received_events_url":"https://api.github.com/users/samvaughton/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T13:36:55Z","updated_at":"2018-08-16T13:36:55Z","author_association":"NONE","body":"To add onto this supporting IPC too would be great to keep feature parity with Eth. I personally use IPC to record activity on the blockchain and it is the preferred method if you do not need to expose the node. \r\n\r\nI reckon a lot of projects that require their own node without exposing it would prefer to use IPC. If they are porting code over from Ethereum it would make it less painful.\r\n\r\nThoughts?\r\n"}}
{"actor":{"display_login":"samvaughton"}}