This commit is contained in:
2026-03-14 12:32:15 +08:00
parent 3a804ac033
commit 1c4e845dae
492 changed files with 146765 additions and 0 deletions

7
hertz_demo/routing.py Normal file
View File

@@ -0,0 +1,7 @@
from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
re_path(r'ws/echo/$', consumers.EchoConsumer.as_asgi()),
]