前后端第一版提交
This commit is contained in:
7
hertz_demo/routing.py
Normal file
7
hertz_demo/routing.py
Normal 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()),
|
||||
]
|
||||
Reference in New Issue
Block a user