Browse Source

auto commit

master
jfinn 2 years ago
parent
commit
e1f3e6b93c
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      wsps/routing.py

+ 8
- 0
wsps/routing.py View File

@@ -0,0 +1,8 @@
1
+# chat/routing.py
2
+from django.urls import re_path
3
+
4
+from . import consumers
5
+
6
+websocket_urlpatterns = [
7
+    re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
8
+]

Loading…
Cancel
Save