from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter import sapl.base.routing application = ProtocolTypeRouter({ 'websocket': AuthMiddlewareStack( URLRouter( sapl.base.routing.websocket_urlpatterns ) ), })