{"action":"created","issue":{"url":"https://api.github.com/repos/howtographql/howtographql/issues/226","repository_url":"https://api.github.com/repos/howtographql/howtographql","labels_url":"https://api.github.com/repos/howtographql/howtographql/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/howtographql/howtographql/issues/226/comments","events_url":"https://api.github.com/repos/howtographql/howtographql/issues/226/events","html_url":"https://github.com/howtographql/howtographql/issues/226","id":258246237,"number":226,"title":"addGraphQLSubscriptions has been deprecated","user":{"login":"dennisbrandenberger","id":17990453,"avatar_url":"https://avatars1.githubusercontent.com/u/17990453?v=4","gravatar_id":"","url":"https://api.github.com/users/dennisbrandenberger","html_url":"https://github.com/dennisbrandenberger","followers_url":"https://api.github.com/users/dennisbrandenberger/followers","following_url":"https://api.github.com/users/dennisbrandenberger/following{/other_user}","gists_url":"https://api.github.com/users/dennisbrandenberger/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisbrandenberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisbrandenberger/subscriptions","organizations_url":"https://api.github.com/users/dennisbrandenberger/orgs","repos_url":"https://api.github.com/users/dennisbrandenberger/repos","events_url":"https://api.github.com/users/dennisbrandenberger/events{/privacy}","received_events_url":"https://api.github.com/users/dennisbrandenberger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-09-16T17:30:33Z","updated_at":"2017-10-02T02:01:11Z","closed_at":"2017-09-27T09:54:17Z","author_association":"NONE","body":"I am doing the vue-apollo tutorial\r\n\r\nAccording to this: https://github.com/apollographql/subscriptions-transport-ws/issues/169, addGraphQLSubscriptions has been deprecated and I get an error (require not working)\r\n\r\nSo I'm using this instead: \r\n```\r\nimport { SubscriptionClient } from 'subscriptions-transport-ws'\r\nimport { addGraphQLSubscriptions } from 'add-graphql-subscriptions';\r\n```\r\n\r\nHowever a new problem occurs:\r\n```\r\nvue.esm.js?65d7:479 [Vue warn]: Error in created hook: \"TypeError: wsClient.subscribe is not a function\"\r\n\r\nfound in\r\n\r\n---> <LinkList> at src/components/LinkList.vue\r\n       <App> at src/App.vue\r\n         <Root>\r\n```\r\nAnyone know a workaround for this ?\r\n\r\nFor now I'm just using the older subscriptions-transport-ws version (^0.6.0) and it seams to work\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/howtographql/howtographql/issues/comments/333425406","html_url":"https://github.com/howtographql/howtographql/issues/226#issuecomment-333425406","issue_url":"https://api.github.com/repos/howtographql/howtographql/issues/226","id":333425406,"user":{"login":"bschwartz757","id":7519644,"avatar_url":"https://avatars0.githubusercontent.com/u/7519644?v=4","gravatar_id":"","url":"https://api.github.com/users/bschwartz757","html_url":"https://github.com/bschwartz757","followers_url":"https://api.github.com/users/bschwartz757/followers","following_url":"https://api.github.com/users/bschwartz757/following{/other_user}","gists_url":"https://api.github.com/users/bschwartz757/gists{/gist_id}","starred_url":"https://api.github.com/users/bschwartz757/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bschwartz757/subscriptions","organizations_url":"https://api.github.com/users/bschwartz757/orgs","repos_url":"https://api.github.com/users/bschwartz757/repos","events_url":"https://api.github.com/users/bschwartz757/events{/privacy}","received_events_url":"https://api.github.com/users/bschwartz757/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T02:01:11Z","updated_at":"2017-10-02T02:01:11Z","author_association":"NONE","body":"Hi @Matt-Dionis , thanks - the tutorial does cover replacing that one (only the `wss...` SubscriptionClient parameter is indicated with double underscores.) The `https` createNetworkInterface one, however, is indicated in brackets - which, being someone who is not super experienced in React looks like it could possibly be some kind of variable. \r\n\r\nAs far as I can tell, there isn't a place in the Subscriptions video where the user is told to replace that so I just figured I'd point it out. Thanks!"}}
{"actor":{"display_login":"bschwartz757"}}