{"action":"closed","issue":{"url":"https://api.github.com/repos/apollostack/subscriptions-transport-ws/issues/59","repository_url":"https://api.github.com/repos/apollostack/subscriptions-transport-ws","labels_url":"https://api.github.com/repos/apollostack/subscriptions-transport-ws/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/subscriptions-transport-ws/issues/59/comments","events_url":"https://api.github.com/repos/apollostack/subscriptions-transport-ws/issues/59/events","html_url":"https://github.com/apollostack/subscriptions-transport-ws/issues/59","id":198493835,"number":59,"title":"Getting error \"Must provide schema\"","user":{"login":"cramatt","id":22599518,"avatar_url":"https://avatars.githubusercontent.com/u/22599518?v=3","gravatar_id":"","url":"https://api.github.com/users/cramatt","html_url":"https://github.com/cramatt","followers_url":"https://api.github.com/users/cramatt/followers","following_url":"https://api.github.com/users/cramatt/following{/other_user}","gists_url":"https://api.github.com/users/cramatt/gists{/gist_id}","starred_url":"https://api.github.com/users/cramatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramatt/subscriptions","organizations_url":"https://api.github.com/users/cramatt/orgs","repos_url":"https://api.github.com/users/cramatt/repos","events_url":"https://api.github.com/users/cramatt/events{/privacy}","received_events_url":"https://api.github.com/users/cramatt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-03T15:09:06Z","updated_at":"2017-01-03T15:18:34Z","closed_at":"2017-01-03T15:18:34Z","body":"I have a scenario where I can connect, but then when I try to subscribe I get the error \"Must provide schema\". I will try to drum up a better code sample for this query but wanted to get this question out there - its driving me crazy! \r\n\r\nI'm providing a valid schema, and in fact I can perform non-subscription based queries just fine. \r\n\r\nI've traced this error to https://github.com/graphql/graphql-js/blob/914dde29098425df45cee95b6feb81b9fed97edb/src/validation/validate.js#L54 and https://github.com/apollostack/graphql-subscriptions/blob/1de0d458f98dca42378673fcbc298bde2d32eacc/src/pubsub.ts#L127 which is confusing me because I use the same valid schema to create a new SubscriptionManager as I do to create my graphql endpoint. \r\n\r\n```\r\nconst subscriptionManager = new SubscriptionManager({\r\n  Schema,\r\n  pubsub\r\n});\r\n```\r\n\r\nDoes the client application need to be aware of the schema? \r\n\r\nAny ideas here? \r\n"}}
{"actor":{"display_login":"cramatt"}}