We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const createApolloClient = authToken => { return new ApolloClient({ link: new WebSocketLink({ uri: "wss://url/v1/graphql", options: { reconnect: true, connectionParams: { headers: { Authorization: `Bearer ${authToken}` } } } }), cache: new InMemoryCache() }); };
@k96white This is working for me with subscriptions and ws subscription but carrefull with http link instead of ws link, syntax is not the same:
const createApolloClient = (authToken) => { return new ApolloClient({ link: new HttpLink({ uri: "https://hasura.cairncross.ovh/v1/graphql", headers: { Authorization: `Bearer ${authToken}` }, }), cache: new InMemoryCache(), }); };
Originally posted by @clementvp in hasura/nodejs-graphql-subscriptions-boilerplate#3 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@k96white This is working for me with subscriptions and ws subscription but carrefull with http link instead of ws link, syntax is not the same:
Originally posted by @clementvp in hasura/nodejs-graphql-subscriptions-boilerplate#3 (comment)
The text was updated successfully, but these errors were encountered: