12 lines
No EOL
339 B
Python
12 lines
No EOL
339 B
Python
from channels.auth import AuthMiddlewareStack
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
import chat_box.routing
|
|
|
|
application = ProtocolTypeRouter({
|
|
# (http->django views is added by default)
|
|
'websocket': AuthMiddlewareStack(
|
|
URLRouter(
|
|
chat_box.routing.websocket_urlpatterns
|
|
)
|
|
),
|
|
}) |