-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
on_ws_connect
return handling
#3729
Comments
Hi, as stated in our integrations' docs, this is intentional.
It is handled, however, differently than for the older subprotocol. The reason for this is that in the newer subprotocol a payload can either be For compatibility reasons, if you return |
@DoctorJohn Thanks for your feedback. With this explanation, should the None check then in fact be in the |
|
@DoctorJohn lol ok, thanks for clarifying. |
Hi there,
I noticed this small difference between the return handling of the new
on_ws_connect
ingraphql_transport_ws
vsgraphql_ws
, notably aNone
value is not handled ingraphql_transport_ws
:strawberry/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py
Line 193 in 633c9bc
Is there a specific reason for this, or could they be made the same?
Thanks.
Upvote & Fund
The text was updated successfully, but these errors were encountered: