Skip to content
New issue

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

V0.16.0 graphql ws subscribe #381

Closed

Conversation

ChrisABryant
Copy link
Contributor

This change adds graphql-ws support only for subscriptions.

Is backwards compatible so still works with subscription-transport-ws without code changes.

Only difference is in new transport parameter for example:

      const gqlHttpClient = createHttpClient(httpUrl, {
         headers: {
            authorization: 'Bearer ' + token,
         }
      });

      const graphqlWsClient = createClient({
         url: wsUrl,
         connectionParams: {
            jwt: token,
         }
      });

      {
         gqlHttpClient,
         graphqlWsClient // instead of gqlWsClient
      }

@jesse-savary
Copy link
Member

jesse-savary commented Jul 19, 2022

Hey @ChrisABryant, I've added your commits into #382 because the development branch is more up to date than main. Please give version 0.17.0 a go and let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants