aboutsummaryrefslogtreecommitdiff
path: root/chat/routing.py
diff options
context:
space:
mode:
Diffstat (limited to 'chat/routing.py')
-rw-r--r--chat/routing.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/chat/routing.py b/chat/routing.py
new file mode 100644
index 00000000..69101be1
--- /dev/null
+++ b/chat/routing.py
@@ -0,0 +1,6 @@
+from django.urls import re_path
+from . import consumers
+
+websocket_urlpatterns = [
+ re_path(r'ws/chat', consumers.ChatConsumer.as_asgi()),
+]