2020-01-27 20:37:52 +00:00
|
|
|
from channels.auth import AuthMiddlewareStack
|
|
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
2020-03-19 22:51:56 +00:00
|
|
|
import chat_box.routing
|
2020-01-27 20:37:52 +00:00
|
|
|
|
|
|
|
application = ProtocolTypeRouter({
|
|
|
|
# (http->django views is added by default)
|
|
|
|
'websocket': AuthMiddlewareStack(
|
|
|
|
URLRouter(
|
2020-03-19 22:51:56 +00:00
|
|
|
chat_box.routing.websocket_urlpatterns
|
|
|
|
)
|
2020-01-27 20:37:52 +00:00
|
|
|
),
|
2020-03-19 22:51:56 +00:00
|
|
|
})
|