瀏覽代碼

auto commit

master
jfinn 3 年之前
父節點
當前提交
e1f3e6b93c
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      wsps/routing.py

+ 8
- 0
wsps/routing.py 查看文件

@@ -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…
取消
儲存