Skip to content

Instantly share code, notes, and snippets.

@DanyF-github
Created March 24, 2022 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanyF-github/baf19b59a6dad33198ce476ca5dadcc0 to your computer and use it in GitHub Desktop.
Save DanyF-github/baf19b59a6dad33198ce476ca5dadcc0 to your computer and use it in GitHub Desktop.
channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
from conversation import routing
application = ProtocolTypeRouter({
'websocket': AuthMiddlewareStack(URLRouter(
routing.websocket_urlpatterns
)),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment