2022-06-27 15:34:24 +02:00
|
|
|
from channels.auth import AuthMiddlewareStack
|
|
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
2022-06-29 11:09:34 +02:00
|
|
|
from django.core.asgi import get_asgi_application
|
2022-06-27 15:34:24 +02:00
|
|
|
from django.urls import path
|
2016-08-14 19:59:36 +02:00
|
|
|
|
2022-06-27 15:34:24 +02:00
|
|
|
from kfet.routing import KFRouter
|
|
|
|
|
|
|
|
application = ProtocolTypeRouter(
|
|
|
|
{
|
|
|
|
# WebSocket chat handler
|
|
|
|
"websocket": AuthMiddlewareStack(
|
|
|
|
URLRouter(
|
|
|
|
[
|
|
|
|
path("ws/k-fet", KFRouter),
|
|
|
|
]
|
|
|
|
)
|
|
|
|
),
|
2022-06-29 11:09:34 +02:00
|
|
|
"http": get_asgi_application(),
|
2022-06-27 15:34:24 +02:00
|
|
|
}
|
|
|
|
)
|