text: # From https://channels.readthedocs.io/en/latest/tutorial/part_2.html
  from channels.auth import AuthMiddlewareStack
  from channels.routing import ProtocolTypeRouter, URLRouter
  import myapp.routing
  
  application = ProtocolTypeRouter({
      # (http->django views is added by default)
      'websocket': AuthMiddlewareStack(
          URLRouter(
              myapp.routing.websocket_urlpatterns
          )
      ),
  })