2022-06-27 15:34:24 +02:00
|
|
|
from channels.auth import AuthMiddlewareStack
|
2022-06-28 15:58:46 +02:00
|
|
|
from channels.http import AsgiHandler
|
2022-06-27 15:34:24 +02:00
|
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
|
|
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-28 15:58:46 +02:00
|
|
|
"http": AsgiHandler,
|
2022-06-27 15:34:24 +02:00
|
|
|
}
|
|
|
|
)
|