Created
March 24, 2022 10:53
-
-
Save DanyF-github/baf19b59a6dad33198ce476ca5dadcc0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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