No way to send custom error from on_connect
when using GraphQLTransportWSHandler
#1122
Labels
on_connect
when using GraphQLTransportWSHandler
#1122
When using the 'legacy' handler, I can send custom errors from
on_connect
as documented, because of the special Handling ofWebSocketConnectionError
atariadne/ariadne/asgi/handlers/graphql_ws.py
Lines 250 to 251 in a9cca4f
The same special handling is missing from
GraphQLTransportWSHandler
ariadne/ariadne/asgi/handlers/graphql_transport_ws.py
Lines 226 to 228 in a9cca4f
It would be nice if at least the error code could be overridden to signal authorization errors to the client.
The text was updated successfully, but these errors were encountered: