summaryrefslogtreecommitdiffstats
path: root/chat/routing.py
diff options
context:
space:
mode:
Diffstat (limited to 'chat/routing.py')
-rw-r--r--chat/routing.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/chat/routing.py b/chat/routing.py
new file mode 100644
index 0000000..9f08ddf
--- /dev/null
+++ b/chat/routing.py
@@ -0,0 +1,7 @@
1from django.urls import re_path
2
3from . import consumers
4
5websocket_urlpatterns = [
6 re_path(r"ws/chat/(?P<room_name>\w+)/$", consumers.ChatConsumer.as_asgi()),
7]