Spaces:
Runtime error
Runtime error
Update chat/routing.py
Browse files- chat/routing.py +8 -8
chat/routing.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
# chat/routing.py
|
2 |
-
from django.urls import re_path
|
3 |
-
|
4 |
-
from . import consumers
|
5 |
-
|
6 |
-
websocket_urlpatterns = [
|
7 |
-
re_path(r"
|
8 |
-
re_path("
|
9 |
]
|
|
|
1 |
+
# chat/routing.py
|
2 |
+
from django.urls import re_path
|
3 |
+
|
4 |
+
from . import consumers
|
5 |
+
|
6 |
+
websocket_urlpatterns = [
|
7 |
+
re_path(r"wss/chat/(?P<room_name>\w+)/$", consumers.ChatConsumer.as_asgi()),
|
8 |
+
re_path("wss/chat",consumers.ChatConsumer.as_asgi()),
|
9 |
]
|