sangue/django/sangue_django/routing.py

11 lines
326 B
Python

from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import get_asgi_application
from django.urls import path
from sangue_app import consumers
application = ProtocolTypeRouter({
# "websocket": URLRouter([path(r'ws/sangue_app', consumers.WsConsumer), ])
"http": get_asgi_application(),
})