Open wlodevelopteam opened 1 year ago
I struggled with this for too long of a time. This is what worked for me. (notice no slashes in the graphql path)
websocket_urlpatterns = [
django.urls.re_path(r"graphql", MyGraphqlWsConsumer.as_asgi()),
]
application = ProtocolTypeRouter({
"http": django_asgi_app,
"websocket": channels.auth.AuthMiddlewareStack(channels.routing.URLRouter(websocket_urlpatterns)),
})
hope it helps someone else.
after handshake, we got this error. Exception inside application: No route found for path 'graphql'.
we implemented basic approach as below. whats wrong inside our approach?