rtc_demo/rtc/routing.py

9 lines
177 B
Python
Raw Permalink Normal View History

2024-09-21 03:17:07 +00:00
# chat/routing.py
from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/(?P<rtc_name>\w+)/$', consumers.RtcConsumer.as_asgi()),
]