from django.urls import path,re_path from channels.routing import ProtocolTypeRouter, URLRouter import iot.routing from iot import consumers websocket_urlpatterns = [ re_path(r'^iot/$', consumers.iotConsumer.as_asgi()), ]