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
In https://ariadnegraphql.org/docs/subscriptions.html#using-on_connect-to-access-connection-s-parameters documentation there is the following example
... def context_value(request): context = {} if request.scope["type"] == "websocket": # request is an instance of WebSocket context.update(websocket.scope["connection_params"]) # Unresolved reference 'websocket' (my remark) else: context["token"] = request.META.get("authorization") return context ...
I guess it should be
context.update(request.scope["connection_params"])
As websocket name isn't defined in the function scope?
websocket
The text was updated successfully, but these errors were encountered:
It seems like so. PR fixing this would be appreciated!
Sorry, something went wrong.
Oh, it in the different project, I will close this issue and open it there then.
Thank you.
No branches or pull requests
In https://ariadnegraphql.org/docs/subscriptions.html#using-on_connect-to-access-connection-s-parameters documentation there is the following example
I guess it should be
As
websocket
name isn't defined in the function scope?The text was updated successfully, but these errors were encountered: