from django.urls import path, re_path from .views import AgentCmdViewSet from .consumers import AgentCmdConsumer, AgentSurveyConsumer, AgentSurveyDetailConsumer websocket_urlpatterns = [ re_path(r"^ws/agent_cmd/(?P\w+)/$", AgentCmdConsumer.as_asgi()), re_path(r"^ws/agent_survey/(?P\w+)/$", AgentSurveyDetailConsumer.as_asgi()), re_path(r"^ws/agent_survey/", AgentSurveyConsumer.as_asgi()), ]