{"action":"created","issue":{"url":"https://api.github.com/repos/graphcool/graphql-playground/issues/575","repository_url":"https://api.github.com/repos/graphcool/graphql-playground","labels_url":"https://api.github.com/repos/graphcool/graphql-playground/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/graphcool/graphql-playground/issues/575/comments","events_url":"https://api.github.com/repos/graphcool/graphql-playground/issues/575/events","html_url":"https://github.com/graphcool/graphql-playground/issues/575","id":298082334,"number":575,"title":"Remove the requirement for the GraphQL server to implement a websocket endpoint","user":{"login":"andheiberg","id":820962,"avatar_url":"https://avatars3.githubusercontent.com/u/820962?v=4","gravatar_id":"","url":"https://api.github.com/users/andheiberg","html_url":"https://github.com/andheiberg","followers_url":"https://api.github.com/users/andheiberg/followers","following_url":"https://api.github.com/users/andheiberg/following{/other_user}","gists_url":"https://api.github.com/users/andheiberg/gists{/gist_id}","starred_url":"https://api.github.com/users/andheiberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andheiberg/subscriptions","organizations_url":"https://api.github.com/users/andheiberg/orgs","repos_url":"https://api.github.com/users/andheiberg/repos","events_url":"https://api.github.com/users/andheiberg/events{/privacy}","received_events_url":"https://api.github.com/users/andheiberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-18T12:49:28Z","updated_at":"2018-04-10T09:09:46Z","closed_at":null,"author_association":"NONE","body":"#### This issue pertains to the following package(s):\r\n\r\n- [ ] GraphQL Playground - Electron App\r\n- [ ] GraphQL Playground HTML\r\n- [x] GraphQL Playground\r\n- [ ] GraphQL Playground Express Middleware\r\n- [ ] GraphQL Playground Hapi Middleware\r\n- [ ] GraphQL Playground Koa Middleware\r\n- [ ] GraphQL Playground Lambda Middleware\r\n\r\n#### What OS and OS version are you experiencing the issue(s) on?\r\n\r\nOSX 10.12.6\r\n\r\n#### What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?\r\n\r\nThis commit 32c873a660463bc06f921906e1d0bcb48d1b05e0\r\n\r\n#### What is the expected behavior?\r\n\r\nPlayground should be able to connect to GraphQL servers that don't offer a websocket endpoint (support subscriptions).\r\n\r\nWebsockets are not part of the formal spec and it's entirely valid to write servers that don't support them.\r\n\r\nI would expect to be able to write GQL queries in playground and have them executed against such a GraphQL server.\r\n\r\n#### What is the actual behavior?\r\n\r\nIt errors rather spectacularly on first load as seen in the screenshots below. The app appears completely broken.\r\n\r\nOn a refresh the UI loads, but console errors are still abundant. Furthermore the app fails to fetch the schema using an inspection query so there is no typeahead support.\r\n\r\nQueries can however be submitted and responses are returned.\r\n\r\n#### What steps may we take to reproduce the behavior?\r\n\r\n```\r\n$ git clone <the repo>\r\n$ yarn\r\n$ cd packages/graphql-playground-react\r\n$ yarn install\r\n$ yarn start\r\n```\r\n\r\nOpen http://localhost:3000/ and enter the url of a GraphQL server that doesn't support websockets.\r\n\r\n<img width=\"1680\" alt=\"screenshot 2018-02-18 12 44 12\" src=\"https://user-images.githubusercontent.com/820962/36351985-7b212ea6-14a9-11e8-9206-78b965fa56f2.png\">\r\n<img width=\"1126\" alt=\"screenshot 2018-02-18 12 44 21\" src=\"https://user-images.githubusercontent.com/820962/36351989-83800c20-14a9-11e8-8fa8-2172fda14b0a.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/graphcool/graphql-playground/issues/comments/380029619","html_url":"https://github.com/graphcool/graphql-playground/issues/575#issuecomment-380029619","issue_url":"https://api.github.com/repos/graphcool/graphql-playground/issues/575","id":380029619,"user":{"login":"kachkaev","id":608862,"avatar_url":"https://avatars3.githubusercontent.com/u/608862?v=4","gravatar_id":"","url":"https://api.github.com/users/kachkaev","html_url":"https://github.com/kachkaev","followers_url":"https://api.github.com/users/kachkaev/followers","following_url":"https://api.github.com/users/kachkaev/following{/other_user}","gists_url":"https://api.github.com/users/kachkaev/gists{/gist_id}","starred_url":"https://api.github.com/users/kachkaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kachkaev/subscriptions","organizations_url":"https://api.github.com/users/kachkaev/orgs","repos_url":"https://api.github.com/users/kachkaev/repos","events_url":"https://api.github.com/users/kachkaev/events{/privacy}","received_events_url":"https://api.github.com/users/kachkaev/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T09:09:46Z","updated_at":"2018-04-10T09:09:46Z","author_association":"NONE","body":"The same error happens in development – I just have not not notice it before since it is completely silent.\r\n\r\n<img width=\"647\" alt=\"screen shot 2018-04-10 at 10 08 27\" src=\"https://user-images.githubusercontent.com/608862/38547549-399a2c82-3ca7-11e8-99b5-a1c91ca9559a.png\">\r\n<img width=\"652\" alt=\"screen shot 2018-04-10 at 10 09 22\" src=\"https://user-images.githubusercontent.com/608862/38547576-462fb98a-3ca7-11e8-8870-8efde3ac57e2.png\">\r\n\r\n"}}
{"actor":{"display_login":"kachkaev"}}