{"action":"created","issue":{"url":"https://api.github.com/repos/trufflesuite/ganache-core/issues/11","repository_url":"https://api.github.com/repos/trufflesuite/ganache-core","labels_url":"https://api.github.com/repos/trufflesuite/ganache-core/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/ganache-core/issues/11/comments","events_url":"https://api.github.com/repos/trufflesuite/ganache-core/issues/11/events","html_url":"https://github.com/trufflesuite/ganache-core/issues/11","id":255278772,"number":11,"title":"Support WebSockets","user":{"login":"onbjerg","id":8862627,"avatar_url":"https://avatars0.githubusercontent.com/u/8862627?v=4","gravatar_id":"","url":"https://api.github.com/users/onbjerg","html_url":"https://github.com/onbjerg","followers_url":"https://api.github.com/users/onbjerg/followers","following_url":"https://api.github.com/users/onbjerg/following{/other_user}","gists_url":"https://api.github.com/users/onbjerg/gists{/gist_id}","starred_url":"https://api.github.com/users/onbjerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onbjerg/subscriptions","organizations_url":"https://api.github.com/users/onbjerg/orgs","repos_url":"https://api.github.com/users/onbjerg/repos","events_url":"https://api.github.com/users/onbjerg/events{/privacy}","received_events_url":"https://api.github.com/users/onbjerg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-05T13:32:40Z","updated_at":"2017-09-08T01:50:23Z","closed_at":null,"author_association":"NONE","body":"Since Web3 1.0.0 the HTTP provider no longer supports subscriptions (e.g listening for events).\r\n\r\nInstead it is expected that developers use the new WebSocket provider or the IPC provider. Neither of these are supported by Ganache, and thus they are not supported in testrpc either.\r\n\r\n## Expected Behavior\r\n- Ganache should expose a WebSocket that accepts JSON-RPC as usual.\r\n- Subscriptions should work as they did before Web3 1.0.0, but over WebSockets.\r\n\r\n## Current Behavior\r\n- WebSockets are unsupported.\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\nIt is impossible to use testrpc with Web3 1.0.0. Instead developers are forced to use Parity or geth."},"comment":{"url":"https://api.github.com/repos/trufflesuite/ganache-core/issues/comments/327977065","html_url":"https://github.com/trufflesuite/ganache-core/issues/11#issuecomment-327977065","issue_url":"https://api.github.com/repos/trufflesuite/ganache-core/issues/11","id":327977065,"user":{"login":"rodney757","id":3942599,"avatar_url":"https://avatars3.githubusercontent.com/u/3942599?v=4","gravatar_id":"","url":"https://api.github.com/users/rodney757","html_url":"https://github.com/rodney757","followers_url":"https://api.github.com/users/rodney757/followers","following_url":"https://api.github.com/users/rodney757/following{/other_user}","gists_url":"https://api.github.com/users/rodney757/gists{/gist_id}","starred_url":"https://api.github.com/users/rodney757/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodney757/subscriptions","organizations_url":"https://api.github.com/users/rodney757/orgs","repos_url":"https://api.github.com/users/rodney757/repos","events_url":"https://api.github.com/users/rodney757/events{/privacy}","received_events_url":"https://api.github.com/users/rodney757/received_events","type":"User","site_admin":false},"created_at":"2017-09-08T01:50:23Z","updated_at":"2017-09-08T01:50:23Z","author_association":"NONE","body":"I have implemented basic support for websockets as well as a few pubsub types (`logs` and `newPendingTransactions`) in my fork (https://github.com/perissology/ganache-core)\r\n\r\nThere are not any websocket tests currently, and websocket have not been thoroughly tested yet. If someone would like to help with that, go ahead. If not, I hope to have time to finish the websocket integration withing the next month or so.\r\n\r\nAfter I have a chance to write tests, I'll make a PR here."}}
{"actor":{"display_login":"rodney757"}}