from channels.auth import AuthMiddlewareStack
from channels.routing import URLRouter, ProtocolTypeRouter
from django.urls import path

from chat import consumers as chat_consumers

application = ProtocolTypeRouter({
    "websocket": AuthMiddlewareStack(
        URLRouter([
            path('ws/chat/', chat_consumers.ChatConsumer.as_asgi()),
        ])
    )
})

from channels.auth import AuthMiddlewareStack
from channels.routing import URLRouter, ProtocolTypeRouter
from django.urls import path

from chat import consumers as chat_consumers

application = ProtocolTypeRouter({
    "websocket": AuthMiddlewareStack(
        URLRouter([
            path('ws/chat/', chat_consumers.ChatConsumer.as_asgi()),
        ])
    )
})
