-
-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cannot use context headers in GraphQL's subscription function. #815
Comments
This is a known issue – you can use this workaround in the meantime |
Thanks for the answer but it's not the workaround I want |
@micimize the workaround works amazing. will |
@kateile after seeing the null safety v5 release to a stable version (along with its dependencies in the gql project), I do not plan on making any more feature or improvement contributions. Aside from the reasons I mentioned in #763, I have stopped using GraphQL in my own project and unfortunately it no longer makes sense for me to continue contributing here. I haven't seen @HofmannZ or @eusdima around here in a long time so unless someone else steps in as active maintainer this project can be considered in low maintenance mode. Some people have expressed some interest in contributing in #762 but we'll see. Hopefully when I get around to the walkthrough vid it will help users PR fixes to their own problems. |
@vincenzopalazzo can we solve this too in the coming updates? |
Hi @kateile, these are some things that I can put in the queue, but do you test it with the last version of the package? If yes, could you please propose a reproducible example? |
@vincenzopalazzo this is more an API tweak for how to provide headers to the WebSocketLink. In essence, it would be adding a parameter to the default SocketClientConfig(
...
- connect: (url, protocols) =>
- IOWebSocketChannel.connect(url, protocols: protocols, headers: myCustomHeaders)
+ headers: myCustomHeaders
) |
Thank you very much. I will always support you! |
Is my code.
I don't want to use headers in the code above.
Please look at the code below.
Here I want to add a header to the context.
For general queries other than subscriptions, the context header works fine.
error message : cannot start as connection_init failed with : Missing Authorization header in JWT authentication mode.
The text was updated successfully, but these errors were encountered: