daren_project/user_management/routing.py

8 lines
305 B
Python
Raw Normal View History

from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/notifications/$', consumers.NotificationConsumer.as_asgi()),
2025-04-29 10:22:57 +08:00
re_path(r'ws/chat/$', consumers.ChatConsumer.as_asgi()),
re_path(r'ws/chat/stream/$', consumers.ChatStreamConsumer.as_asgi()),
]