tosanoob commited on
Commit
e0404ce
1 Parent(s): 8f07fe9

Update chat/routing.py

Browse files
Files changed (1) hide show
  1. 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"ws/chat/(?P<room_name>\w+)/$", consumers.ChatConsumer.as_asgi()),
8
- re_path("ws/chat",consumers.ChatConsumer.as_asgi()),
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
  ]