from channels.auth import AuthMiddlewareStack
from  channels.routing import ProtocolTypeRouter, URLRouter

import chat.routing 


application = ProtocolTypeRouter({
    'websocket': AuthMiddlewareStack(URLRouter(chat.routing.ws_urlpatterns)),
})
